mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: addresses nits in string_decoder, url, util
- Only `@@toStringTag` affects `util.isError()`, this is the reason why it uses `Object.prototype.toString.call(argument)` under the hood. - Shows an actual Euro symbol for reference. - Uses line-drawing characters for the URL chart & fixes the chart borders. PR-URL: https://github.com/nodejs/node/pull/7026 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
1 parent
6a62bb0070
commit
1c1256718e
3 files changed
+14
-14
No files matched your search
@@ -28,8 +28,8 @@ internal buffer is used to ensure that the decoded string does not contain
|
||||
any incomplete multibyte characters. These are held in the buffer until the
|
||||
next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
|
||||
|
||||
In the following example, the three UTF-8 encoded bytes of the European euro
|
||||
symbol are written over three separate operations:
|
||||
In the following example, the three UTF-8 encoded bytes of the European Euro
|
||||
symbol (`€`) are written over three separate operations:
|
||||
|
||||
```js
|
||||
const StringDecoder = require('string_decoder').StringDecoder;
|
||||
|
||||
Reference in new issue
Block a user