From df5d63cfa2af8902526d83775bec8192e29fcd1b Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 14 Oct 2025 18:26:08 -0400 Subject: [DOC] Fix typo in String#partition --- doc/string/partition.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/string/partition.rdoc b/doc/string/partition.rdoc index ece034ee66..ee445bd21f 100644 --- a/doc/string/partition.rdoc +++ b/doc/string/partition.rdoc @@ -29,7 +29,7 @@ If +pattern+ is a Regexp, performs the equivalent of self.match(pattern) ["hello", "", ""] If +pattern+ is not a Regexp, converts it to a string (if it is not already one), -then performs the equivalet of self.index(pattern) +then performs the equivalent of self.index(pattern) (and does _not_ set {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]): 'hello'.partition('h') # => ["", "h", "ello"] -- cgit v1.2.3