Skip to content

Commit

Permalink
Fix typos [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Apr 21, 2020
1 parent b9962f0 commit 4b86194
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ruby/3/arithmetic/long.h
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/ruby/3/assume.h
Expand Up @@ -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" */
Expand Down
2 changes: 1 addition & 1 deletion include/ruby/3/scan_args.h
Expand Up @@ -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) : \
Expand Down

0 comments on commit 4b86194

Please sign in to comment.