summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2021-04-03 19:49:10 +1000
committerJohn Bampton <[email protected]>2021-04-03 19:51:01 +1000
commitd8622fc68b88102cbf358b524913c823af31a1b0 (patch)
treed1fd777b8474d24af7952cae778b5299337a2171
parentfb8e12f37c86cfbdc6a8c4fa3b327bae24a8ce27 (diff)
downloadmruby-d8622fc68b88102cbf358b524913c823af31a1b0.tar.gz
mruby-d8622fc68b88102cbf358b524913c823af31a1b0.zip
chore: fix spelling
-rw-r--r--include/mruby/irep.h4
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c2
-rw-r--r--mrbgems/mruby-io/test/io.rb2
-rw-r--r--src/variable.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index d2ea202db..6a3b4bd10 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -46,8 +46,8 @@ enum mrb_catch_type {
struct mrb_irep_catch_handler {
uint8_t type; /* enum mrb_catch_type */
- uint8_t begin[4]; /* The starting address to match the hander. Includes this. */
- uint8_t end[4]; /* The endpoint address that matches the hander. Not Includes this. */
+ uint8_t begin[4]; /* The starting address to match the handler. Includes this. */
+ uint8_t end[4]; /* The endpoint address that matches the handler. Not Includes this. */
uint8_t target[4]; /* The address to jump to if a match is made. */
};
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index a4780a415..464df1c24 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -211,7 +211,7 @@ is_code_block_open(struct mrb_parser_state *parser)
/* an expression was ended */
break;
case EXPR_ENDARG:
- /* closing parenthese */
+ /* closing parenthesis */
break;
case EXPR_ENDFN:
/* definition end */
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb
index 76ae13a58..328b5292f 100644
--- a/mrbgems/mruby-io/test/io.rb
+++ b/mrbgems/mruby-io/test/io.rb
@@ -524,7 +524,7 @@ assert('IO#close_on_exec') do
fd = IO.sysopen $mrbtest_io_wfname, "w"
io = IO.new fd, "w"
begin
- # IO.sysopen opens a file descripter with O_CLOEXEC flag.
+ # IO.sysopen opens a file descriptor with O_CLOEXEC flag.
assert_true io.close_on_exec?
rescue ScriptError
io.close
diff --git a/src/variable.c b/src/variable.c
index d5a7d90c7..646353bfd 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -906,7 +906,7 @@ const_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p)
* call-seq:
* mod.constants -> array
*
- * Returns an array of all names of contants defined in the receiver.
+ * Returns an array of all names of constants defined in the receiver.
*/
mrb_value
mrb_mod_constants(mrb_state *mrb, mrb_value mod)