diff --git a/README.md b/README.md index f9e6f4a..05cd8f8 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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"])) diff --git a/bench/micro.jl b/bench/micro.jl index 9c3f653..44b452b 100644 --- a/bench/micro.jl +++ b/bench/micro.jl @@ -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], diff --git a/src/Parser.jl b/src/Parser.jl index 881c201..6bc5df2 100644 --- a/src/Parser.jl +++ b/src/Parser.jl @@ -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 diff --git a/test/json-samples.jl b/test/json-samples.jl index 2df326f..85a31b9 100644 --- a/test/json-samples.jl +++ b/test/json-samples.jl @@ -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\":\"\"