Skip to content

Commit ca9eac8

Browse files
Amxxernestognw
andauthored
Apply suggestions from code review
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 parent 7b02b79 commit ca9eac8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contracts/utils/Bytes.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ library Bytes {
101101

102102
/**
103103
* @dev Moves the content of `buffer`, from `start` (included) to the end of `buffer` to the start of that buffer.
104+
* The `end` argument is truncated to the length of the `buffer`.
104105
*
105106
* NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead
106107
*/
@@ -110,6 +111,7 @@ library Bytes {
110111

111112
/**
112113
* @dev Moves the content of `buffer`, from `start` (included) to end (excluded) to the start of that buffer.
114+
* The `end` argument is truncated to the length of the `buffer`.
113115
*
114116
* NOTE: This function modifies the provided buffer in place. If you need to preserve the original buffer, use {slice} instead
115117
*/

0 commit comments

Comments
 (0)