Skip to content

Commit 32a6d87

Browse files
JR McEnteeMylesBorins
JR McEntee
authored andcommitted
doc: correct markdown file line lengths
This commit updates two paragraphs that exceeded the 80 line standard after updating to macOS. Fixes: #12086 PR-URL: #12106 Backport-PR-URL: #12650 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent db4aef4 commit 32a6d87

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

doc/api/fs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1247,9 +1247,9 @@ The kernel ignores the position argument and always appends the data to
12471247
the end of the file.
12481248

12491249
_Note: The behavior of `fs.open()` is platform specific for some flags. As such,
1250-
opening a directory on macOS and Linux with the `'a+'` flag - see example below -
1251-
will return an error. In contrast, on Windows and FreeBSD, a file descriptor
1252-
will be returned._
1250+
opening a directory on macOS and Linux with the `'a+'` flag - see example
1251+
below - will return an error. In contrast, on Windows and FreeBSD, a file
1252+
descriptor will be returned._
12531253

12541254
```js
12551255
// macOS and Linux

doc/api/process.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1637,12 +1637,12 @@ the current value of `ps`.
16371637

16381638
*Note*: When a new value is assigned, different platforms will impose different
16391639
maximum length restrictions on the title. Usually such restrictions are quite
1640-
limited. For instance, on Linux and macOS, `process.title` is limited to the size
1641-
of the binary name plus the length of the command line arguments because setting
1642-
the `process.title` overwrites the `argv` memory of the process. Node.js v0.8
1643-
allowed for longer process title strings by also overwriting the `environ`
1644-
memory but that was potentially insecure and confusing in some (rather obscure)
1645-
cases.
1640+
limited. For instance, on Linux and macOS, `process.title` is limited to the
1641+
size of the binary name plus the length of the command line arguments because
1642+
setting the `process.title` overwrites the `argv` memory of the process.
1643+
Node.js v0.8 allowed for longer process title strings by also overwriting the
1644+
`environ` memory but that was potentially insecure and confusing in some
1645+
(rather obscure) cases.
16461646

16471647
## process.umask([mask])
16481648
<!-- YAML

0 commit comments

Comments
 (0)