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

ruby-changes:69696

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 11 Nov 2021 11:46:19 +0900 (JST)
Subject: [ruby-changes:69696] ad84c5d1b0 (master): rb_enc_code_to_mbclen: fix doxygen

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

From ad84c5d1b047604cc36a12d388ff2caa1da954c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Thu, 11 Nov 2021 11:33:29 +0900
Subject: rb_enc_code_to_mbclen: fix doxygen

Wrong parameter name. [ci skip]
---
 include/ruby/internal/encoding/encoding.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/ruby/internal/encoding/encoding.h b/include/ruby/internal/encoding/encoding.h
index db69cc5cc21..9208d27ecf8 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); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/encoding/encoding.h#L626
 /**
  * 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)
-- 
cgit v1.2.1


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

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