summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-27 12:54:42 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-27 12:54:42 +0900
commitfe4dd18db4ef0d0cc0192949538c07110516b69a (patch)
treea88d2151c5f39e2066e55c5bb2c0ead959cb5c74 /string.c
parentd6f21b308bcff03e82f8b3dbf11a852ce111b3b3 (diff)
downloadruby-fe4dd18db4ef0d0cc0192949538c07110516b69a.tar.gz
[DOC] Fix a typo [ci skip]
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index cd4a593856..564812ae51 100644
--- a/string.c
+++ b/string.c
@@ -5437,7 +5437,7 @@ rb_str_aset(VALUE str, VALUE indx, VALUE val)
* string[index] = new_string
* string[start, length] = new_string
* string[range] = new_string
- * string[regexp, capture = 0) = new_string
+ * string[regexp, capture = 0] = new_string
* string[substring] = new_string
*
* Replaces all, some, or none of the contents of +self+; returns +new_string+.