I found some code snippets using the 'hex' prefix before a string in a bytes variable. I can't seem to find its description in the solidity docs.
bytes memory bytesVar = "0x01"; bytes memory bytesVarWithHex = hex"01";
When I log the results they return 0x30783031 and 0x01, respectively. What exactly is it doing for the variables being stored?