From 88723dd5a5a27bb0bc244c7b20223ca99f917fd6 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 9 Sep 2024 15:28:05 -0400 Subject: [PATCH] [DOC] Fix missing colons in String --- string.rb | 4 ++-- 1 file 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.