[前][次][番号順一覧][スレッド一覧]

ruby-changes:66126

From: Ryuta <ko1@a...>
Date: Mon, 10 May 2021 19:20:02 +0900 (JST)
Subject: [ruby-changes:66126] 73136ebbde (master): [ruby/psych] Fix some typos [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=73136ebbde

From 73136ebbde4faee648420e13a7edf7cfd092a6ea Mon Sep 17 00:00:00 2001
From: Ryuta Kamizono <kamipo@g...>
Date: Mon, 26 Apr 2021 02:25:11 +0900
Subject: [ruby/psych] Fix some typos [ci skip]

https://github.com/ruby/psych/commit/98617e55a1
---
 ext/psych/lib/psych/handler.rb      | 2 +-
 ext/psych/lib/psych/nodes/scalar.rb | 2 +-
 ext/psych/yaml/scanner.c            | 4 ++--
 ext/psych/yaml/yaml.h               | 6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ext/psych/lib/psych/handler.rb b/ext/psych/lib/psych/handler.rb
index 8f23e36..ad7249f 100644
--- a/ext/psych/lib/psych/handler.rb
+++ b/ext/psych/lib/psych/handler.rb
@@ -119,7 +119,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/handler.rb#L119
     # +tag+ is an associated tag or nil
     # +plain+ is a boolean value
     # +quoted+ is a boolean value
-    # +style+ is an integer idicating the string style
+    # +style+ is an integer indicating the string style
     #
     # See the constants in Psych::Nodes::Scalar for the possible values of
     # +style+
diff --git a/ext/psych/lib/psych/nodes/scalar.rb b/ext/psych/lib/psych/nodes/scalar.rb
index e2616b6..5550b61 100644
--- a/ext/psych/lib/psych/nodes/scalar.rb
+++ b/ext/psych/lib/psych/nodes/scalar.rb
@@ -50,7 +50,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/nodes/scalar.rb#L50
       # +tag+ is an associated tag or nil
       # +plain+ is a boolean value
       # +quoted+ is a boolean value
-      # +style+ is an integer idicating the string style
+      # +style+ is an integer indicating the string style
       #
       # == See Also
       #
diff --git a/ext/psych/yaml/scanner.c b/ext/psych/yaml/scanner.c
index 6acee7d..bb5d201 100644
--- a/ext/psych/yaml/scanner.c
+++ b/ext/psych/yaml/scanner.c
@@ -273,7 +273,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L273
  * The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation
  * increase that precedes a block collection (cf. the INDENT token in Python).
  * The token BLOCK-END denote indentation decrease that ends a block collection
- * (cf. the DEDENT token in Python).  However YAML has some syntax pecularities
+ * (cf. the DEDENT token in Python).  However YAML has some syntax peculiarities
  * that makes detections of these tokens more complex.
  *
  * 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, https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/scanner.c#L3287
 
         /* Check if we are at the end of the scalar. */
 
-        /* Fix for crash unitialized value crash
+        /* Fix for crash uninitialized value crash
          * Credit for the bug and input is to OSS Fuzz
          * Credit for the fix to Alex Gaynor
          */
diff --git a/ext/psych/yaml/yaml.h b/ext/psych/yaml/yaml.h
index 914ea04..f1b7bfd 100644
--- a/ext/psych/yaml/yaml.h
+++ b/ext/psych/yaml/yaml.h
@@ -1095,7 +1095,7 @@ typedef struct yaml_parser_s { https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/yaml.h#L1095
     yaml_error_type_t error;
     /** Error description. */
     const char *problem;
-    /** The byte about which the problem occured. */
+    /** The byte about which the problem occurred. */
     size_t problem_offset;
     /** The problematic value (@c -1 is none). */
     int problem_value;
@@ -1335,7 +1335,7 @@ yaml_parser_delete(yaml_parser_t *parser); https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/yaml.h#L1335
  * Set a string input.
  *
  * Note that the @a input pointer must be valid while the @a parser object
- * exists.  The application is responsible for destroing @a input after
+ * exists.  The application is responsible for destroying @a input after
  * destroying the @a parser.
  *
  * @param[in,out]   parser  A parser object.
@@ -1950,7 +1950,7 @@ yaml_emitter_close(yaml_emitter_t *emitter); https://github.com/ruby/ruby/blob/trunk/ext/psych/yaml/yaml.h#L1950
 /**
  * Emit a YAML document.
  *
- * The documen object may be generated using the yaml_parser_load() function
+ * The document object may be generated using the yaml_parser_load() function
  * or the yaml_document_initialize() function.  The emitter takes the
  * responsibility for the document object and destroys its content after
  * it is emitted. The document object is destroyed even if the function fails.
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]