Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
musvaage committed Jul 2, 2023
1 parent 0f0684c commit 193295b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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

0 comments on commit 193295b

Please sign in to comment.