Skip to content

Commit e3ce56c

Browse files
dduugghsbt
authored andcommitted
Fix typos
1 parent 0de695e commit e3ce56c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

ext/json/generator/generator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ static inline FORCE_INLINE void search_flush(search_state *search)
137137
{
138138
// Do not remove this conditional without profiling, specifically escape-heavy text.
139139
// escape_UTF8_char_basic will advance search->ptr and search->cursor (effectively a search_flush).
140-
// For back-to-back characters that need to be escaped, specifcally for the SIMD code paths, this method
141-
// will be called just before calling escape_UTF8_char_basic. There will be no characers to append for the
140+
// For back-to-back characters that need to be escaped, specifically for the SIMD code paths, this method
141+
// will be called just before calling escape_UTF8_char_basic. There will be no characters to append for the
142142
// consecutive characters that need to be escaped. While the fbuffer_append is a no-op if
143143
// nothing needs to be flushed, we can save a few memory references with this conditional.
144144
if (search->ptr > search->cursor) {

ext/json/lib/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
# When not specified:
134134
# # The last value is used and a deprecation warning emitted.
135135
# JSON.parse('{"a": 1, "a":2}') => {"a" => 2}
136-
# # waring: detected duplicate keys in JSON object.
136+
# # warning: detected duplicate keys in JSON object.
137137
# # This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true`
138138
#
139139
# When set to `+true+`

ext/json/lib/json/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ class Coder
10021002
# See {Parsing Options}[#module-JSON-label-Parsing+Options], and {Generating Options}[#module-JSON-label-Generating+Options].
10031003
#
10041004
# For generation, the <tt>strict: true</tt> option is always set. When a Ruby object with no native \JSON counterpart is
1005-
# encoutered, the block provided to the initialize method is invoked, and must return a Ruby object that has a native
1005+
# encountered, the block provided to the initialize method is invoked, and must return a Ruby object that has a native
10061006
# \JSON counterpart:
10071007
#
10081008
# module MyApp

ext/json/parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
12651265
break;
12661266
}
12671267

1268-
raise_parse_error("unreacheable: %s", state);
1268+
raise_parse_error("unreachable: %s", state);
12691269
}
12701270

12711271
static void json_ensure_eof(JSON_ParserState *state)

test/json/ractor_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_generate
4242
else
4343
puts "Expected:"
4444
puts expected_json
45-
puts "Acutual:"
45+
puts "Actual:"
4646
puts actual_json
4747
puts
4848
exit 1

0 commit comments

Comments
 (0)