Skip to content

Commit a3c4667

Browse files
committed
fix
1 parent 88c03e7 commit a3c4667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/utils/Bytes.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ library Bytes {
7171
/**
7272
* @dev Count number of occurrences of `search` at the beginning of `buffer`.
7373
*/
74-
function countLeading(bytes memory buffer, bytes1 search) public pure returns (uint256) {
74+
function countLeading(bytes memory buffer, bytes1 search) internal pure returns (uint256) {
7575
return countConsecutive(buffer, 0, search);
7676
}
7777

7878
/**
7979
* @dev Count number of occurrences of `search` in `buffer`, starting from position `offset`.
8080
*/
81-
function countConsecutive(bytes memory buffer, uint256 offset, bytes1 search) public pure returns (uint256 i) {
81+
function countConsecutive(bytes memory buffer, uint256 offset, bytes1 search) internal pure returns (uint256 i) {
8282
assembly ("memory-safe") {
8383
let chunk
8484
let length := sub(mload(buffer), offset)

0 commit comments

Comments
 (0)