Skip to content

Commit 8f1ae02

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweak for Pathname#ascend
1 parent c1be6a3 commit 8f1ae02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pathname_builtin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def descend
590590
# yields +self+, then a new pathname for each successive dirname in the stored path;
591591
# see File.dirname:
592592
#
593-
# Pathname.new('/path/to/some/file.rb').ascend {|dirname| p dirname}
593+
# Pathname('/path/to/some/file.rb').ascend {|dirname| p dirname}
594594
# #<Pathname:/path/to/some/file.rb>
595595
# #<Pathname:/path/to/some>
596596
# #<Pathname:/path/to>

0 commit comments

Comments
 (0)