Skip to content

Commit df5d63c

Browse files
committed
[DOC] Fix typo in String#partition
1 parent 57bb726 commit df5d63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/string/partition.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If +pattern+ is a Regexp, performs the equivalent of <tt>self.match(pattern)</tt
2929
'hello'.partition(/x/) # => ["hello", "", ""]
3030

3131
If +pattern+ is not a Regexp, converts it to a string (if it is not already one),
32-
then performs the equivalet of <tt>self.index(pattern)</tt>
32+
then performs the equivalent of <tt>self.index(pattern)</tt>
3333
(and does _not_ set {pattern-matching global variables}[rdoc-ref:globals.md@Pattern+Matching]):
3434

3535
'hello'.partition('h') # => ["", "h", "ello"]

0 commit comments

Comments
 (0)