summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-04-21 12:38:36 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-04-21 12:38:36 +0900
commit4b86194177c65babb28236d2a14994d3f5d3f1bf (patch)
tree3f92d08b9270177fe4df685ee3b913a3746cd4c7
parentb9962f0e8909b1163320fbcfe80060a259b2353d (diff)
Fix typos [ci skip]
-rw-r--r--include/ruby/3/arithmetic/long.h2
-rw-r--r--include/ruby/3/assume.h2
-rw-r--r--include/ruby/3/scan_args.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/3/arithmetic/long.h b/include/ruby/3/arithmetic/long.h
index 46ff76d63e..3263c616b0 100644
--- a/include/ruby/3/arithmetic/long.h
+++ b/include/ruby/3/arithmetic/long.h
@@ -136,7 +136,7 @@ ruby3_fix2long_by_shift(VALUE x)
RUBY3_ASSERT_OR_ASSUME(RB_FIXNUM_P(x));
/* :NOTE: VALUE can be wider than long. If right shift is arithmetic, this
- * is noticably faster than above. */
+ * is noticeably faster than above. */
const SIGNED_VALUE y = x;
const SIGNED_VALUE z = y >> 1;
const long w = RUBY3_CAST((long)z);
diff --git a/include/ruby/3/assume.h b/include/ruby/3/assume.h
index 9664f5606c..98059d7cbf 100644
--- a/include/ruby/3/assume.h
+++ b/include/ruby/3/assume.h
@@ -59,7 +59,7 @@
# define RUBY3_UNREACHABLE() __assume(0)
#endif
-/** Wraps (or simulates) `__asume`. */
+/** Wraps (or simulates) `__assume`. */
#if RUBY3_COMPILER_SINCE(Intel, 13, 0, 0)
# /* icc warnings are false positives. Ignore them. */
# /* "warning #2261: __assume expression with side effects discarded" */
diff --git a/include/ruby/3/scan_args.h b/include/ruby/3/scan_args.h
index bc4faddd56..b1a29f706d 100644
--- a/include/ruby/3/scan_args.h
+++ b/include/ruby/3/scan_args.h
@@ -112,7 +112,7 @@ RUBY3_SYMBOL_EXPORT_END()
# * Static assertions need such integer constant expressions as defined in
# * ISO/IEC 9899:2018 section 6.7.10 paragraph #3.
# *
-# * GCC nontheless constant-folds this into no-op, though. */
+# * GCC nonetheless constant-folds this into no-op, though. */
# define rb_scan_args_verify(fmt, varc) \
(sizeof(char[1-2*(rb_scan_args_count(fmt)<0)])!=1 ? \
rb_scan_args_bad_format(fmt) : \