summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-11-11 11:33:29 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-11-11 11:45:19 +0900
commitad84c5d1b047604cc36a12d388ff2caa1da954c1 (patch)
tree51f11001e11d55361b34b2460c3b4b103fe6bcd9
parent4b3830127f794e70187ca2986199947b2467b46f (diff)
rb_enc_code_to_mbclen: fix doxygen
Wrong parameter name. [ci skip]
-rw-r--r--include/ruby/internal/encoding/encoding.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/internal/encoding/encoding.h b/include/ruby/internal/encoding/encoding.h
index db69cc5cc2..9208d27ecf 100644
--- a/include/ruby/internal/encoding/encoding.h
+++ b/include/ruby/internal/encoding/encoding.h
@@ -626,10 +626,10 @@ int rb_enc_codelen(int code, rb_encoding *enc);
/**
* Identical to rb_enc_codelen(), except it returns 0 for invalid code points.
*
- * @param[in] code Code point in question.
- * @param[in] enc Encoding to convert the code into a byte sequence.
- * @retval 0 `code` is invalid.
- * @return otherwise Number of bytes used for `enc` to encode `code`.
+ * @param[in] c Code point in question.
+ * @param[in] enc Encoding to convert `c` into a byte sequence.
+ * @retval 0 `c` is invalid.
+ * @return otherwise Number of bytes needed for `enc` to encode `c`.
*/
static inline int
rb_enc_code_to_mbclen(int c, rb_encoding *enc)