From fe4dd18db4ef0d0cc0192949538c07110516b69a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 27 Aug 2022 12:54:42 +0900 Subject: [DOC] Fix a typo [ci skip] --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') 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+. -- cgit v1.2.1