Skip to content
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

doc: make path.relative stricter #13714

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc: modify the grammer
  • Loading branch information
DuanPengfei committed Jun 16, 2017
commit 0032aeac30337edf7fb6bf519f204f51a0f915de
4 changes: 2 additions & 2 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ changes:
* Returns: {string}

The `path.relative()` method returns the relative path from `from` to `to` based
on current working directory. If `from` and `to` each resolve to the same path
(after calling `path.resolve()` on each), a zero-length string is returned.
on the current working directory. If `from` and `to` each resolve to the same
path (after calling `path.resolve()` on each), a zero-length string is returned.

If a zero-length string is passed as `from` or `to`, the current working
directory will be used instead of the zero-length strings.
Expand Down