mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: remove "considered" in errors.md
"would be considered a `TypeError`" -> "would be a `TypeError`". Using "considered" introduces unnecessary ambiguity. Is is not actually a TypeError but merely "considered" one? Why is that? We don't say. Simplify to "is a TypeError". PR-URL: https://github.com/nodejs/node/pull/34152 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
1 parent
e33c09cb3a
commit
7fc56ebd0d
1 file changed
+1
-2
+1
-2
@@ -562,8 +562,7 @@ program. For a comprehensive list, see the [`errno`(3) man page][].
|
||||
* Extends {errors.Error}
|
||||
|
||||
Indicates that a provided argument is not an allowable type. For example,
|
||||
passing a function to a parameter which expects a string would be considered
|
||||
a `TypeError`.
|
||||
passing a function to a parameter which expects a string would be a `TypeError`.
|
||||
|
||||
```js
|
||||
require('url').parse(() => { });
|
||||
|
||||
Reference in new issue
Block a user