Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #358

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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