summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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+.