We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917ace2 commit ee2ae0fCopy full SHA for ee2ae0f
doc/api/buffer.md
@@ -1907,6 +1907,9 @@ changes:
1907
Returns a new `Buffer` that references the same memory as the original, but
1908
offset and cropped by the `start` and `end` indices.
1909
1910
+Specifying `end` greater than [`buf.length`] will return the same result as
1911
+that of `end` equal to [`buf.length`].
1912
+
1913
*Note*: Modifying the new `Buffer` slice will modify the memory in the
1914
original `Buffer` because the allocated memory of the two objects overlap.
1915
0 commit comments