-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrected a typo in File's documentation #5933
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're at it...
@@ -568,7 +568,7 @@ class File < IO::FileDescriptor | |||
Crystal::System::File.link(old_path, new_path) | |||
end | |||
|
|||
# Creates a symbolic link at *new_path* to an existing file given by *old_path. | |||
# Creates a symbolic link at *new_path* to an existing file given by *old_path*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does old_path
really need to exist and be a file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function does let you create broken symlinks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So maybe change it to Creates a symbolic link at *new_path* pointing to *old_path*
? But these argument names are not very good either... so maybe it should be reworked in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More apt would be src_path
+ dest_path
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or target
and link_name
from man ln
. But changing the argument names should probably be a separate PR (unless @Givralix want's to tackle this here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better if you do it.
No description provided.