From 94b2323a68eaac272374b42399f24ea62445f35b Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 4 Dec 2020 10:37:17 +0900 Subject: Fix typos [ci skip] --- include/ruby/internal/xmalloc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/internal/xmalloc.h b/include/ruby/internal/xmalloc.h index 2de544f7a3..fc04d02889 100644 --- a/include/ruby/internal/xmalloc.h +++ b/include/ruby/internal/xmalloc.h @@ -59,7 +59,7 @@ RBIMPL_ATTR_ALLOC_SIZE((1)) * except: * * - It raises Ruby exceptions instead of returning NULL, and - * - In case of `ENOMEM` it tries to GC to make some roon. + * - In case of `ENOMEM` it tries to GC to make some room. * * @param[in] size Requested amount of memory. * @throw rb_eMemError No space left for `size` bytes allocation. @@ -68,7 +68,7 @@ RBIMPL_ATTR_ALLOC_SIZE((1)) * the underlying malloc() routine. * @note It doesn't return NULL. * @note Unlike some malloc() implementations, it allocates something and - * returns a meaningful value even when `size` is equl to zero. + * returns a meaningful value even when `size` is equal to zero. * @warning The return value shall be invalidated exactly once by either * ruby_xfree(), ruby_xrealloc(), or ruby_xrealloc2(). It is a * failure to pass it to system free(), because the system and Ruby @@ -241,7 +241,7 @@ RBIMPL_ATTR_NOEXCEPT(realloc(ptr, newelems * newsiz)) * exactly once by either passing it to ruby_xfree(), or passing * it to either ruby_xrealloc(), ruby_xrealloc2() then check the * return value for invalidation. - * @warning Do not pass anytihng other than pointers described above. For + * @warning Do not pass anything other than pointers described above. For * instance pointers returned from malloc() or mmap() shall not be * passed to this function, because the underlying memory * management mechanism could differ. -- cgit v1.2.3