summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2021-04-26 00:10:39 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-26 10:07:41 +0900
commit33f2ff3babb7054f3df1efa25c1285e09613d7b8 (patch)
tree4c47e98fd4194080fb4d0d047100731b076babc0 /include
parentf9b62b5cc04fa87f0970c9ca3d1cbbc9be8bf8fe (diff)
Fix some typos by spell checker
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4414
Diffstat (limited to 'include')
-rw-r--r--include/ruby/backward/2/stdarg.h2
-rw-r--r--include/ruby/internal/attr/cold.h2
-rw-r--r--include/ruby/internal/compiler_since.h4
-rw-r--r--include/ruby/internal/core.h2
-rw-r--r--include/ruby/internal/warning_push.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/include/ruby/backward/2/stdarg.h b/include/ruby/backward/2/stdarg.h
index c2a9ca1e2f..5c5e1b31ce 100644
--- a/include/ruby/backward/2/stdarg.h
+++ b/include/ruby/backward/2/stdarg.h
@@ -20,7 +20,7 @@
* extension libraries. They could be written in C++98.
* @brief Defines old #_
*
- * Nobody should ever use these macros any longer. No konwn compilers lack
+ * Nobody should ever use these macros any longer. No known compilers lack
* prototypes today. It's 21st century. Just forget them.
*/
diff --git a/include/ruby/internal/attr/cold.h b/include/ruby/internal/attr/cold.h
index fcee507456..6db57fc9c2 100644
--- a/include/ruby/internal/attr/cold.h
+++ b/include/ruby/internal/attr/cold.h
@@ -25,7 +25,7 @@
/** Wraps (or simulates) `__attribute__((cold))` */
#if RBIMPL_COMPILER_IS(SunPro)
-# /* Recent SunPro has __has_attribute, and is borken. */
+# /* Recent SunPro has __has_attribute, and is broken. */
# /* It reports it has attribute cold, reality isn't (warnings issued). */
# define RBIMPL_ATTR_COLD() /* void */
#elif RBIMPL_HAS_ATTRIBUTE(cold)
diff --git a/include/ruby/internal/compiler_since.h b/include/ruby/internal/compiler_since.h
index 92abb8acc8..b213cfd8b9 100644
--- a/include/ruby/internal/compiler_since.h
+++ b/include/ruby/internal/compiler_since.h
@@ -30,7 +30,7 @@
* @param y Minor version.
* @param z Patchlevel.
* @retval true cc >= x.y.z.
- * @retval false oherwise.
+ * @retval false otherwise.
*/
#define RBIMPL_COMPILER_SINCE(cc, x, y, z) \
(RBIMPL_COMPILER_IS(cc) && \
@@ -48,7 +48,7 @@
* @param y Minor version.
* @param z Patchlevel.
* @retval true cc < x.y.z.
- * @retval false oherwise.
+ * @retval false otherwise.
*/
#define RBIMPL_COMPILER_BEFORE(cc, x, y, z) \
(RBIMPL_COMPILER_IS(cc) && \
diff --git a/include/ruby/internal/core.h b/include/ruby/internal/core.h
index 53a00a4603..279a697ea1 100644
--- a/include/ruby/internal/core.h
+++ b/include/ruby/internal/core.h
@@ -18,7 +18,7 @@
* Do not expect for instance `__VA_ARGS__` is always available.
* We assume C99 for ruby itself but we don't assume languages of
* extension libraries. They could be written in C++98.
- * @brief Core data structures, definitions and manupulations.
+ * @brief Core data structures, definitions and manipulations.
*/
#include "ruby/internal/core/rarray.h"
#include "ruby/internal/core/rbasic.h"
diff --git a/include/ruby/internal/warning_push.h b/include/ruby/internal/warning_push.h
index b8a21aaeab..ca521290c9 100644
--- a/include/ruby/internal/warning_push.h
+++ b/include/ruby/internal/warning_push.h
@@ -25,7 +25,7 @@
*
* Q: Why all the macros defined in this file are function-like macros?
*
- * A: Sigh. This is because of Doxgen. Its `SKIP_FUNCTION_MACROS = YES`
+ * A: Sigh. This is because of Doxygen. Its `SKIP_FUNCTION_MACROS = YES`
* configuration setting requests us that if we want it to ignore these
* macros, then we have to do two things: (1) let them be defined as
* function-like macros, and (2) place them separately in their own line,