Skip to content

Commit 6ebc806

Browse files
JR McEnteejasnell
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. PR-URL: #12106 Fixes: #12086 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7a5d07c commit 6ebc806

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
@@ -1374,9 +1374,9 @@ The kernel ignores the position argument and always appends the data to
13741374
the end of the file.
13751375

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

13811381
```js
13821382
// macOS and Linux

doc/api/process.md

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

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

16411641
## process.umask([mask])
16421642
<!-- YAML

0 commit comments

Comments
 (0)