summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-10-14 18:26:08 -0400
committerPeter Zhu <peter@peterzhu.ca>2025-10-14 18:26:08 -0400
commitdf5d63cfa2af8902526d83775bec8192e29fcd1b (patch)
treea35be1b34434e735e7b5f460ba86bd9d6364d224
parent57bb7268843831ed8cd701b0fc109d9ed856206e (diff)
[DOC] Fix typo in String#partition
-rw-r--r--doc/string/partition.rdoc2
1 files changed, 1 insertions, 1 deletions
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 <tt>self.match(pattern)</tt
'hello'.partition(/x/) # => ["hello", "", ""]
If +pattern+ is not a Regexp, converts it to a string (if it is not already one),
-then performs the equivalet of <tt>self.index(pattern)</tt>
+then performs the equivalent of <tt>self.index(pattern)</tt>
(and does _not_ set {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
'hello'.partition('h') # => ["", "h", "ello"]