Skip to content

Commit 48e4b21

Browse files
authored
typos (#358)
1 parent 0f0684c commit 48e4b21

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ JSON.Writer.show_element(io::MyContext, elt)
209209

210210
# write a key for a JSON object
211211
# default implementation calls delimit, then indent, then show_string,
212-
# then seperate
212+
# then separate
213213
JSON.Writer.show_key(io::MyContext, elt)
214214

215215
# write a key-value pair for a JSON object
@@ -322,7 +322,7 @@ end
322322
```
323323

324324
To use the custom serialization, `sprint` can be used (and this can be encapsulated by a
325-
convenient user-defined inteface):
325+
convenient user-defined interface):
326326

327327
```julia
328328
julia> JSON.parse(sprint(show_json, TaggedNumberSerialization(), Any[1, 2.0, "hi"]))

bench/micro.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ const micros = Dict(
3434
"unicode-1024" => "" ^ 1024,
3535
"bool" => true,
3636
"null" => nothing,
37-
"flat-homogenous-array-16" => collect(1:16),
38-
"flat-homogenous-array-1024" => collect(1:1024),
39-
"heterogenous-array" => [
37+
"flat-homogeneous-array-16" => collect(1:16),
38+
"flat-homogeneous-array-1024" => collect(1:1024),
39+
"heterogeneous-array" => [
4040
1, 2, 3, 7, "A", "C", "E", "N", "Q", "R", "Shuttle to Grand Central"],
4141
"nested-array-16^2" => [collect(1:16) for _ in 1:16],
4242
"nested-array-16^3" => [[collect(1:16) for _ in 1:16] for _ in 1:16],

src/Parser.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ the advancement. If the `ParserState` is already done, then throw an error.
102102

103103
"""
104104
Return `true` if there is a current byte, and `false` if all bytes have been
105-
exausted.
105+
exhausted.
106106
"""
107107
@inline hasmore(ps::MemoryParserState) = ps.s length(ps)
108108
@inline hasmore(ps::StreamingParserState) = true # no more now ≠ no more ever

test/json-samples.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ gmaps= "{\"markers\": [
224224
\"homeTeam\":\"Hamilton Library\",
225225
\"awayTeam\":\"LUGip HW SIG\",
226226
\"markerImage\":\"images/white.png\",
227-
\"information\": \"Linux users can meet the first Tuesday of the month to work out harward and configuration issues.\",
227+
\"information\": \"Linux users can meet the first Tuesday of the month to work out hardware and configuration issues.\",
228228
\"fixture\":\"Tuesday 7pm\",
229229
\"capacity\":\"\",
230230
\"tv\":\"\"

0 commit comments

Comments
 (0)