Skip to content

Commit 98617e5

Browse files
committed
Fix some typos [ci skip]
1 parent 091cd46 commit 98617e5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ext/psych/yaml/scanner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
* The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation
274274
* increase that precedes a block collection (cf. the INDENT token in Python).
275275
* The token BLOCK-END denote indentation decrease that ends a block collection
276-
* (cf. the DEDENT token in Python). However YAML has some syntax pecularities
276+
* (cf. the DEDENT token in Python). However YAML has some syntax peculiarities
277277
* that makes detections of these tokens more complex.
278278
*
279279
* The tokens BLOCK-ENTRY, KEY, and VALUE are used to represent the indicators
@@ -3287,7 +3287,7 @@ yaml_parser_scan_flow_scalar(yaml_parser_t *parser, yaml_token_t *token,
32873287

32883288
/* Check if we are at the end of the scalar. */
32893289

3290-
/* Fix for crash unitialized value crash
3290+
/* Fix for crash uninitialized value crash
32913291
* Credit for the bug and input is to OSS Fuzz
32923292
* Credit for the fix to Alex Gaynor
32933293
*/

ext/psych/yaml/yaml.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ typedef struct yaml_parser_s {
10951095
yaml_error_type_t error;
10961096
/** Error description. */
10971097
const char *problem;
1098-
/** The byte about which the problem occured. */
1098+
/** The byte about which the problem occurred. */
10991099
size_t problem_offset;
11001100
/** The problematic value (@c -1 is none). */
11011101
int problem_value;
@@ -1335,7 +1335,7 @@ yaml_parser_delete(yaml_parser_t *parser);
13351335
* Set a string input.
13361336
*
13371337
* Note that the @a input pointer must be valid while the @a parser object
1338-
* exists. The application is responsible for destroing @a input after
1338+
* exists. The application is responsible for destroying @a input after
13391339
* destroying the @a parser.
13401340
*
13411341
* @param[in,out] parser A parser object.
@@ -1950,7 +1950,7 @@ yaml_emitter_close(yaml_emitter_t *emitter);
19501950
/**
19511951
* Emit a YAML document.
19521952
*
1953-
* The documen object may be generated using the yaml_parser_load() function
1953+
* The document object may be generated using the yaml_parser_load() function
19541954
* or the yaml_document_initialize() function. The emitter takes the
19551955
* responsibility for the document object and destroys its content after
19561956
* it is emitted. The document object is destroyed even if the function fails.

lib/psych/handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def alias anchor
119119
# +tag+ is an associated tag or nil
120120
# +plain+ is a boolean value
121121
# +quoted+ is a boolean value
122-
# +style+ is an integer idicating the string style
122+
# +style+ is an integer indicating the string style
123123
#
124124
# See the constants in Psych::Nodes::Scalar for the possible values of
125125
# +style+

lib/psych/nodes/scalar.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Scalar < Psych::Nodes::Node
5050
# +tag+ is an associated tag or nil
5151
# +plain+ is a boolean value
5252
# +quoted+ is a boolean value
53-
# +style+ is an integer idicating the string style
53+
# +style+ is an integer indicating the string style
5454
#
5555
# == See Also
5656
#

0 commit comments

Comments
 (0)