diff options
| author | John Bampton <[email protected]> | 2020-12-13 17:26:24 +1000 |
|---|---|---|
| committer | John Bampton <[email protected]> | 2020-12-13 18:38:22 +1000 |
| commit | 940dec5e7df1c4c7ec131073bd364ddd59d4b48c (patch) | |
| tree | 77b0097e93d105368890ab0611801225e72f7ec6 /include | |
| parent | 116e128b1a103e2fb246cc9d53b82246b24dbd40 (diff) | |
| download | mruby-940dec5e7df1c4c7ec131073bd364ddd59d4b48c.tar.gz mruby-940dec5e7df1c4c7ec131073bd364ddd59d4b48c.zip | |
Fix spelling
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/array.h | 2 | ||||
| -rw-r--r-- | include/mruby/khash.h | 2 | ||||
| -rw-r--r-- | include/mruby/string.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/mruby/array.h b/include/mruby/array.h index 34011d537..0b0137d5f 100644 --- a/include/mruby/array.h +++ b/include/mruby/array.h @@ -296,7 +296,7 @@ MRB_API mrb_value mrb_ary_clear(mrb_state *mrb, mrb_value self); * * @param mrb The mruby state reference. * @param ary The target array - * @param sep The separater, can be NULL + * @param sep The separator, can be NULL */ MRB_API mrb_value mrb_ary_join(mrb_state *mrb, mrb_value ary, mrb_value sep); diff --git a/include/mruby/khash.h b/include/mruby/khash.h index 4884ba73c..1fb6eecbb 100644 --- a/include/mruby/khash.h +++ b/include/mruby/khash.h @@ -91,7 +91,7 @@ kh_fill_flags(uint8_t *p, uint8_t c, size_t len) khval_t: value data type kh_is_map: (0: hash set / 1: hash map) __hash_func: hash function - __hash_equal: hash comparation function + __hash_equal: hash comparison function */ #define KHASH_DEFINE(name, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) \ mrb_noreturn void mrb_raise_nomemory(mrb_state *mrb); \ diff --git a/include/mruby/string.h b/include/mruby/string.h index d53f09e96..288f0fda0 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -345,9 +345,9 @@ MRB_API mrb_value mrb_str_new_capa(mrb_state *mrb, size_t capa); MRB_API const char *mrb_string_cstr(mrb_state *mrb, mrb_value str); /* NULL terminated C string from mrb_value; `str` will be updated */ MRB_API const char *mrb_string_value_cstr(mrb_state *mrb, mrb_value *str); -/* obslete: use RSTRING_PTR() */ +/* obsolete: use RSTRING_PTR() */ MRB_API const char *mrb_string_value_ptr(mrb_state *mrb, mrb_value str); -/* obslete: use RSTRING_LEN() */ +/* obsolete: use RSTRING_LEN() */ MRB_API mrb_int mrb_string_value_len(mrb_state *mrb, mrb_value str); /** @@ -433,7 +433,7 @@ MRB_API int mrb_str_cmp(mrb_state *mrb, mrb_value str1, mrb_value str2); * - Returned string does not contain any NUL characters (but terminator). * - It raises an ArgumentError exception if Ruby string contains * NUL characters. - * - Retured string will be freed automatically on next GC. + * - Returned string will be freed automatically on next GC. * - Caller can modify returned string without affecting Ruby string * (e.g. it can be used for mkstemp(3)). * |
