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

docs for os.Getwd() misleading #7811

Closed
gopherbot opened this issue Apr 17, 2014 · 4 comments
Closed

docs for os.Getwd() misleading #7811

gopherbot opened this issue Apr 17, 2014 · 4 comments

Comments

@gopherbot
Copy link
Contributor

by kkowalczyk:

http://tip.golang.org/pkg/os/#Getwd

It says: "func Getwd() (pwd string, err error)"

pwd implies a password. 

Getwd() returns current working directory. 

It would be clearer if it said dir instead: "func Getwd() (dir string, err
error)" (mirroring "Chdir(dir string)")
@bradfitz
Copy link
Contributor

Comment 1:

pwd means "print working directory" (http://en.wikipedia.org/wiki/Pwd), not password.
But dir works too I guess. It's definitely not printing it.

Labels changed: added repo-main.

Status changed to Accepted.

@minux
Copy link
Member

minux commented Apr 17, 2014

Comment 2:

i think "pwd" here means "present working directory".

@gopherbot
Copy link
Contributor Author

Comment 3:

CL https://golang.org/cl/89100043 mentions this issue.

@minux
Copy link
Member

minux commented Apr 18, 2014

Comment 4:

This issue was closed by revision 4b9ab7d.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants