Skip to content

Commit

Permalink
typos (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
musvaage authored Jul 3, 2023
1 parent 0f0684c commit 48e4b21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ JSON.Writer.show_element(io::MyContext, elt)

# write a key for a JSON object
# default implementation calls delimit, then indent, then show_string,
# then seperate
# then separate
JSON.Writer.show_key(io::MyContext, elt)

# write a key-value pair for a JSON object
Expand Down Expand Up @@ -322,7 +322,7 @@ end
```

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

```julia
julia> JSON.parse(sprint(show_json, TaggedNumberSerialization(), Any[1, 2.0, "hi"]))
Expand Down
6 changes: 3 additions & 3 deletions bench/micro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const micros = Dict(
"unicode-1024" => "" ^ 1024,
"bool" => true,
"null" => nothing,
"flat-homogenous-array-16" => collect(1:16),
"flat-homogenous-array-1024" => collect(1:1024),
"heterogenous-array" => [
"flat-homogeneous-array-16" => collect(1:16),
"flat-homogeneous-array-1024" => collect(1:1024),
"heterogeneous-array" => [
1, 2, 3, 7, "A", "C", "E", "N", "Q", "R", "Shuttle to Grand Central"],
"nested-array-16^2" => [collect(1:16) for _ in 1:16],
"nested-array-16^3" => [[collect(1:16) for _ in 1:16] for _ in 1:16],
Expand Down
2 changes: 1 addition & 1 deletion src/Parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ the advancement. If the `ParserState` is already done, then throw an error.

"""
Return `true` if there is a current byte, and `false` if all bytes have been
exausted.
exhausted.
"""
@inline hasmore(ps::MemoryParserState) = ps.s length(ps)
@inline hasmore(ps::StreamingParserState) = true # no more now ≠ no more ever
Expand Down
2 changes: 1 addition & 1 deletion test/json-samples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ gmaps= "{\"markers\": [
\"homeTeam\":\"Hamilton Library\",
\"awayTeam\":\"LUGip HW SIG\",
\"markerImage\":\"images/white.png\",
\"information\": \"Linux users can meet the first Tuesday of the month to work out harward and configuration issues.\",
\"information\": \"Linux users can meet the first Tuesday of the month to work out hardware and configuration issues.\",
\"fixture\":\"Tuesday 7pm\",
\"capacity\":\"\",
\"tv\":\"\"
Expand Down

0 comments on commit 48e4b21

Please sign in to comment.