[前][次][番号順一覧][スレッド一覧]

ruby-changes:63884

From: Kazuhiro <ko1@a...>
Date: Fri, 4 Dec 2020 10:38:28 +0900 (JST)
Subject: [ruby-changes:63884] 94b2323a68 (master): Fix typos [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=94b2323a68

From 94b2323a68eaac272374b42399f24ea62445f35b Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Fri, 4 Dec 2020 10:37:17 +0900
Subject: Fix typos [ci skip]


diff --git a/include/ruby/internal/xmalloc.h b/include/ruby/internal/xmalloc.h
index 2de544f..fc04d02 100644
--- a/include/ruby/internal/xmalloc.h
+++ b/include/ruby/internal/xmalloc.h
@@ -59,7 +59,7 @@ RBIMPL_ATTR_ALLOC_SIZE((1)) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/xmalloc.h#L59
  * 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)) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/xmalloc.h#L68
  *             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)) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/xmalloc.h#L241
  *              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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]