Buffer.slice: Added description for the case when end is greater than…#14720
Buffer.slice: Added description for the case when end is greater than…#14720vishal7201 wants to merge 4 commits intonodejs:masterfrom
Conversation
… buffer length Fixes nodejs#14714 - issue
doc/api/buffer.md
Outdated
| Returns a new `Buffer` that references the same memory as the original, but | ||
| offset and cropped by the `start` and `end` indices. | ||
|
|
||
| Specifying 'end' greater than ['buf.length'] will return the same result as that of |
There was a problem hiding this comment.
Looks good, but you should use ` instead of '
The resulting HTML looks different, and only [`bug.length`][] links to the right place - https://github.com/nodejs/node/pull/14720/files?short_path=c4f6105#diff-c4f6105249780774d5b3f276b4e4879f
(edit by @addaleax: fixed markdown)
|
Hello @vishal7201, welcome and thank you for the contribution 🥇 If you haven't already, you should take a look at the CONTRIBUTING guide. Especially the part the deals with reviewing PRs. |
|
Thankyou @refack for improvements. I have made the suggested changes. |
benjamingr
left a comment
There was a problem hiding this comment.
Thank you for this contribution!
|
@vishal7201 that you for following up 👍 |
doc/api/buffer.md
Outdated
| offset and cropped by the `start` and `end` indices. | ||
|
|
||
| Specifying `end` greater than [`buf.length`] will return the same result as that | ||
| of `end` equal to [`buf.length`] |
There was a problem hiding this comment.
Missing . at the end of the sentence.
Missing full stop added in for paragraph describing buf.slice([start[, end]])
tniessen
left a comment
There was a problem hiding this comment.
LGTM (1910 exceeds line length due to trailing whitespace, this will be fixed while landing)
Added description for the case when `end` is greater than buffer length PR-URL: #14720 Fixes: #14714 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
|
Landed in 89d9cc7 |


Buffer.slice: Added description for the case when 'end' is greater than buffer length
Fixes #14714 - issue
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)