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: update os.markdown #976

Closed
wants to merge 1 commit into from
Closed

doc: update os.markdown #976

wants to merge 1 commit into from

Conversation

benjamingr
Copy link
Member

Some doc update based on improvement ideas I remember from when I used this module in node:

  • Mention windows returns 0 for nice values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned)
  • Mention platform and arch are aliases for process properties.
  • Document possible return values where appropriate, add examples in others.
  • Rename title in order to match other titles in the navigation.
  • Fix line that was over 80 characters long.

@tellnes
Copy link
Contributor

tellnes commented Feb 26, 2015

LGTM, except the commit message should start with doc:

@mscdex
Copy link
Contributor

mscdex commented Feb 26, 2015

What @tellnes said. Otherwise LGTM.

@benjamingr benjamingr changed the title Update os.markdown doc: update os.markdown Feb 26, 2015
@benjamingr
Copy link
Member Author

Thanks, I've renamed it appropriately.


## os.endianness()

Returns the endianness of the CPU. Possible values are `"BE"` or `"LE"`.
Returns the endianness of the CPU. Possible values are `'BE'` for big endian
or `'LE'` for little endien.
Copy link
Contributor

Choose a reason for hiding this comment

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

spelling, endian

@benjamingr
Copy link
Member Author

@brendanashworth thanks! Fixed and squashed.

@@ -20,16 +21,18 @@ Returns the hostname of the operating system.

## os.type()

Returns the operating system name.
Returns the operating system name. For example 'Linux' on Linux, 'Darwin' on
OSX and 'Windows_NT' on Windows.
Copy link
Contributor

Choose a reason for hiding this comment

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

OS X

Some doc update based on improvement ideas I remember from when I used this module in node:

 - Mention windows returns 0 for `nice` values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned)
 - Mention platform and arch are aliases for `process` properties.
 - Document possible return values where appropriate, add examples in others.
 - Rename title in order to match other titles in the navigation.
 - Fix line that was over 80 characters long.
@benjamingr
Copy link
Member Author

Thanks @vkurchatkin! I've changed the quoting per your suggestion - it's worth mentioning it's not consistent throughout the docs (discussed in Domenic's promise event docs PR)

@vkurchatkin
Copy link
Contributor

LGTM

tellnes pushed a commit that referenced this pull request Feb 27, 2015
Some doc update based on improvement ideas I remember from when I used this module in node:

 - Mention windows returns 0 for `nice` values (which is obvious, but io makes no attempt to calculate something similar or return undefined, 0 is returned)
 - Mention platform and arch are aliases for `process` properties.
 - Document possible return values where appropriate, add examples in others.
 - Rename title in order to match other titles in the navigation.
 - Fix line that was over 80 characters long.

PR-URL: #976
Reviewed-By: Christian Tellnes <[email protected]>
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Vladimir Kurchatkin <[email protected]>
@tellnes
Copy link
Contributor

tellnes commented Feb 27, 2015

Landed as f83d380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants