Skip to content

Commit 2f53d6c

Browse files
Merge pull request rails#43751 from timoschilling/patch-2
Fix type in Pathname#existence documentation [ci-skip]
2 parents 63d7178 + 115c562 commit 2f53d6c

File tree

1 file changed

+1
-1
lines changed
  • activesupport/lib/active_support/core_ext/pathname

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/pathname/existence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Pathname
44
# Returns the receiver if the named file exists otherwise returns +nil+.
55
# <tt>pathname.existence</tt> is equivalent to
66
#
7-
# pathname.exists? ? object : nil
7+
# pathname.exists? ? pathname : nil
88
#
99
# For example, something like
1010
#

0 commit comments

Comments
 (0)