diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-10-14 18:26:08 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-10-14 18:26:08 -0400 |
| commit | df5d63cfa2af8902526d83775bec8192e29fcd1b (patch) | |
| tree | a35be1b34434e735e7b5f460ba86bd9d6364d224 | |
| parent | 57bb7268843831ed8cd701b0fc109d9ed856206e (diff) | |
[DOC] Fix typo in String#partition
| -rw-r--r-- | doc/string/partition.rdoc | 2 |
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"] |
