You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The api for links is ln(existing, new) but the old error text said "from
existing to new", where I believe it should have said "to existing from
new". The language for this has always been a bit confusing IMO, dating
back to the original unix manpages for hard and symbolic links: the
order of the arguments is because of the defaulting rules for the
command line tool, but in a language context without the defaulting
arguably it would be more logical (but against tradition) to reverse the
arguments, but that boat has long ago sailed. However we can at least
make the error message more intuitive.
This patch changes the text to try to make it more clear which is the
new link and which is the thing being linked to. Likely this error came
from the example using "source.txt" and "target.txt" and it being
natural to say "to target", when really in the function call
"target.txt" is the link being created and "source.txt" is the thing
being linked to.
This changes the example to use "existing.txt" and "link.txt" so it is
more obvious which is the link and which is the existing file, and uses
the word "to" in reference the to the thing being linked to, and "from"
in reference to link being created.
0 commit comments