summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-02-08 15:19:13 -1000
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-17 12:38:40 -0800
commitf6d78f959f8e795f000c572c6c21edecda71fe42 (patch)
tree45ba0cbb41a52d3bde465cb74f2538267e5cd1d4
parentfa9b59276d56b0a3d1b3e2ff6d230ec1339ccf4c (diff)
downloadnode-new-f6d78f959f8e795f000c572c6c21edecda71fe42.tar.gz
doc: improve strict assertion mode color text
Minor improvements to the text about colors in strict assertion mode: * Consolidate the two paragraphs into one * Pluralize "variables" * Remove unnecessary article "the" * Change "doc" to "documentation" PR-URL: https://github.com/nodejs/node/pull/31703 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--doc/api/assert.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index 1b8fbab791..2b819c3e4e 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -57,12 +57,10 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
// ]
```
-To deactivate the colors, use the `NO_COLOR` or
-`NODE_DISABLE_COLORS` environment variable.
-This will also deactivate the colors in the REPL.
-
-For more on the color support in terminal environments, read
-the tty [getColorDepth()](tty.html#tty_writestream_getcolordepth_env) doc.
+To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS`
+environment variables. This will also deactivate the colors in the REPL. For
+more on color support in terminal environments, read the tty
+[getColorDepth()](tty.html#tty_writestream_getcolordepth_env) documentation.
## Legacy assertion mode