summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.rb b/string.rb
index fc758d803e..ccc6e3f0cb 100644
--- a/string.rb
+++ b/string.rb
@@ -164,8 +164,8 @@
# These instance methods make use of slicing:
#
# - String#[] (aliased as String#slice): returns a slice copied from +self+.
-# - String#[]= returns a copy of +self+ with a slice replaced.
-# - String#slice! returns +self+ with a slice removed.
+# - String#[]=: returns a copy of +self+ with a slice replaced.
+# - String#slice!: returns +self+ with a slice removed.
#
# Each of the above methods takes arguments that determine the slice
# to be copied or replaced.