diff options
author | Kenta Murata <[email protected]> | 2020-12-24 09:32:31 +0900 |
---|---|---|
committer | Kenta Murata <[email protected]> | 2020-12-24 09:32:54 +0900 |
commit | 05a756b3323d23b8f6ec899eaa83f7172ada0999 (patch) | |
tree | cbf6067dce69e7925b29fb4fd98dc46c3825c4f8 | |
parent | ae26d5bd41ba3718073176a6be7b16924c5b138b (diff) |
[memory_view] Fix some grammar issues in a comment
-rw-r--r-- | include/ruby/memory_view.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h index b5e82650b4..4996cdbbb3 100644 --- a/include/ruby/memory_view.h +++ b/include/ruby/memory_view.h @@ -37,7 +37,7 @@ typedef struct { } 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 { /* 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. |