Skip to content

Commit 6ff817a

Browse files
0xnoobamiller-gh
authored andcommitted
docs: A few of minor copy changes (nodejs#267)
1 parent 4408e72 commit 6ff817a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/documentation/0013-node-output-to-cli/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ console.log('My %s has %d years', 'cat', 2)
3434
```
3535

3636
- `%s` format a variable as a string
37-
- `%d` or `%i` format a variable as an integer
38-
- `%f` format a variable as a floating point number
39-
- `%O` used to print an object representation
37+
- `%d` format a variable as a number
38+
- `%i` format a variable as its integer part only
39+
- `%o` format a variable as an object
4040

4141
Example:
4242

4343
```js
44-
console.log('%O', Number)
44+
console.log('%o', Number)
4545
```
4646

4747
## Clear the console

src/documentation/0014-node-input-from-cli/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In this callback function, we close the readline interface.
2929

3030
`readline` offers several other methods, and I'll let you check them out on the package documentation linked above.
3131

32-
If you need to require a password, it's best to now echo it back, but instead showing a `*` symbol.
32+
If you need to require a password, it's best not to echo it back, but instead showing a `*` symbol.
3333

3434
The simplest way is to use the [`readline-sync` package](https://www.npmjs.com/package/readline-sync) which is very similar in terms of the API and handles this out of the box.
3535

src/documentation/0016-npm/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It started as a way to download and manage dependencies of Node.js packages, but
1515

1616
There are many things that `npm` does.
1717

18-
> Yarn is an alternative to npm. Make sure you check it out as well.
18+
> [**Yarn**](https://yarnpkg.com/en/) is an alternative to npm. Make sure you check it out as well.
1919
2020
## Downloads
2121

src/documentation/0019-package-json/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Each has a specific property, like `eslintConfig`, `babel` and others. Those are
445445

446446
You have seen in the description above version numbers like these: `~3.0.0` or `^0.13.0`. What do they mean, and which other version specifiers can you use?
447447

448-
That symbol specifies which updates you package accepts, from that dependency.
448+
That symbol specifies which updates your package accepts, from that dependency.
449449

450450
Given that using semver (semantic versioning) all versions have 3 digits, the first being the major release, the second the minor release and the third is the patch release, you have these rules:
451451

0 commit comments

Comments
 (0)