Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5f3ed61

Browse filesBrowse files
committed
doc: add reference for buffer.inspect()
This commit refers readers to util.inspect() for an explanation of buffer.inspect(). Fixes: #3918 PR-URL: #3921 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent 007cfea commit 5f3ed61
Copy full SHA for 5f3ed61

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+3-1Lines changed: 3 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,8 @@ to `false`.
882882
* Number, Default: 50
883883

884884
How many bytes will be returned when `buffer.inspect()` is called. This can
885-
be overridden by user modules.
885+
be overridden by user modules. See [util.inspect()][] for more details on
886+
`buffer.inspect()` behavior.
886887

887888
Note that this is a property on the buffer module returned by
888889
`require('buffer')`, not on the Buffer global, or a buffer instance.
@@ -933,3 +934,4 @@ has actively observed undue memory retention in their applications.
933934

934935
[`buf1.compare(buf2)`]: #buffer_buf_compare_otherbuffer
935936
[Array#indexOf()]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
937+
[util.inspect()]: util.html#util_util_inspect_object_options

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.