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

v4 backport: doc: unify dirname and filename description #10968

Closed
wants to merge 1 commit into from

Conversation

sam-github
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. v4.x labels Jan 23, 2017
The directory name of the current module. This the same as the
[`path.dirname()`][] of the [`__filename`][].

`__dirname` isn't actually a global but rather local to each module.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please avoid the use of contractions in the docs. s/isn't/is not/

I know this was like this already but while you're in here changing things :-)

@sam-github
Copy link
Contributor Author

PTAL @jasnell

@sam-github
Copy link
Contributor Author

PR is docs only, CI is irrelevant

@MylesBorins
Copy link
Contributor

@sam-github needs a rebase

__dirname is path.dirname(__filename), but its docs, specifically the
attempt to describe javascript scope in terms of "running" and
"executing" had drifted apart. Rework to describe one as a variation of
the other, move the example, and just describe the names in terms of the
module, and it's local variables rather than the ill defined execution
concepts.

Fix: nodejs#5525
PR-URL: nodejs#10527
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
@sam-github
Copy link
Contributor Author

@MylesBorins apologies for the delay, rebased

@MylesBorins
Copy link
Contributor

landed in f97bfb227f

@sam-github sam-github deleted the backport-10527 branch April 17, 2017 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants