mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
file.c: improve docs for File#path
* file.c: [DOC] fix grammar in docs for File#path and use a stronger description than "inaccurate". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf6ea09c8f
commit
086015a5cb
1 changed files with 3 additions and 2 deletions
5
file.c
5
file.c
|
@ -426,8 +426,9 @@ apply2files(int (*func)(const char *, void *), int argc, VALUE *argv, void *arg)
|
|||
* Returns the pathname used to create <i>file</i> as a string. Does
|
||||
* not normalize the name.
|
||||
*
|
||||
* The pathname may not point the file corresponding to <i>file</i>.
|
||||
* For instance, pathname becomes inaccurate when file has been moved or deleted.
|
||||
* The pathname may not point to the file corresponding to <i>file</i>.
|
||||
* For instance, the pathname becomes void when the file has been
|
||||
* moved or deleted.
|
||||
*
|
||||
* This method raises <code>IOError</code> for a <i>file</i> created using
|
||||
* <code>File::Constants::TMPFILE</code> because they don't have a pathname.
|
||||
|
|
Loading…
Reference in a new issue