diff --git a/docs/types/reference-types.rst b/docs/types/reference-types.rst index 7955c865e86a..8d21221b4323 100644 --- a/docs/types/reference-types.rst +++ b/docs/types/reference-types.rst @@ -505,7 +505,7 @@ Array slices are useful to ABI-decode secondary data passed in function paramete /// after doing basic validation on the address argument. function forward(bytes calldata _payload) external { bytes4 sig = bytes4(_payload[:4]); - // equivalent to + // Due to truncating behaviour, bytes4(_payload) performs identically. // bytes4 sig = bytes4(_payload); if (sig == bytes4(keccak256("setOwner(address)"))) { address owner = abi.decode(_payload[4:], (address));