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

ruby-changes:64536

From: Kenta <ko1@a...>
Date: Thu, 24 Dec 2020 09:33:16 +0900 (JST)
Subject: [ruby-changes:64536] 05a756b332 (master): [memory_view] Fix some grammar issues in a comment

https://git.ruby-lang.org/ruby.git/commit/?id=05a756b332

From 05a756b3323d23b8f6ec899eaa83f7172ada0999 Mon Sep 17 00:00:00 2001
From: Kenta Murata <mrkn@m...>
Date: Thu, 24 Dec 2020 09:32:31 +0900
Subject: [memory_view] Fix some grammar issues in a comment


diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h
index b5e8265..4996cdb 100644
--- a/include/ruby/memory_view.h
+++ b/include/ruby/memory_view.h
@@ -37,7 +37,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/include/ruby/memory_view.h#L37
 } rb_memory_view_item_component_t;
 
 typedef struct {
-    /* The original object that have the memory exported via this memory view.
+    /* The original object that has the memory exported via this memory view.
      * The consumer of this memory view has the responsibility to call rb_gc_mark
      * for preventing this obj collected by GC.  */
     VALUE obj;
@@ -51,15 +51,15 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/include/ruby/memory_view.h#L51
     /* true for readonly memory, false for writable memory. */
     bool readonly;
 
-    /* A string to describe the format of an element, or NULL for unsigned byte.
-     * The format string is a sequence the following pack-template specifiers:
+    /* A string to describe the format of an element, or NULL for unsigned bytes.
+     * The format string is a sequence of the following pack-template specifiers:
      *
      *   c, C, s, s!, S, S!, n, v, i, i!, I, I!, l, l!, L, L!,
      *   N, V, f, e, g, q, q!, Q, Q!, d, E, G, j, J, x
      *
      * For example, "dd" for an element that consists of two double values,
      * and "CCC" for an element that consists of three bytes, such as
-     * a RGB color triplet.
+     * an RGB color triplet.
      *
      * Also, the value endianness can be explicitly specified by '<' or '>'
      * following a value type specifier.
-- 
cgit v0.10.2


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

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