Skip to content

Commit d759e0f

Browse files
Trotttargos
authored andcommitted
doc: remove "note that" from assert.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent d384911 commit d759e0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/assert.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
115115
```
116116

117117
To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
118-
Please note that this will also deactivate the colors in the REPL.
118+
This will also deactivate the colors in the REPL.
119119

120120
## Legacy mode
121121

@@ -1029,7 +1029,7 @@ assert.rejects(
10291029
});
10301030
```
10311031

1032-
Note that `error` cannot be a string. If a string is provided as the second
1032+
`error` cannot be a string. If a string is provided as the second
10331033
argument, then `error` is assumed to be omitted and the string will be used for
10341034
`message` instead. This can lead to easy-to-miss mistakes. Please read the
10351035
example in [`assert.throws()`][] carefully if using a string as the second
@@ -1131,7 +1131,7 @@ assert.throws(
11311131
nested: true,
11321132
baz: 'text'
11331133
}
1134-
// Note that only properties on the validation object will be tested for.
1134+
// Only properties on the validation object will be tested for.
11351135
// Using nested objects requires all properties to be present. Otherwise
11361136
// the validation is going to fail.
11371137
}
@@ -1217,7 +1217,7 @@ assert.throws(
12171217
);
12181218
```
12191219

1220-
Note that `error` cannot be a string. If a string is provided as the second
1220+
`error` cannot be a string. If a string is provided as the second
12211221
argument, then `error` is assumed to be omitted and the string will be used for
12221222
`message` instead. This can lead to easy-to-miss mistakes. Using the same
12231223
message as the thrown error message is going to result in an

0 commit comments

Comments
 (0)