We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f683003 commit 038ea2aCopy full SHA for 038ea2a
hex-literal/README.md
@@ -47,10 +47,21 @@ assert_eq!(bytes1, bytes2);
47
48
Using an unsupported character inside literals will result in a compilation error:
49
```rust,compile_fail
50
-# use hex_literal::hex;
51
-hex!("АА"); // Cyrillic "А"
52
-hex!("11 22"); // Japanese space
53
-hex!("0123 // Сomments inside literals are not supported");
+hex_literal::hex!("АА"); // Cyrillic "А"
+hex_literal::hex!("11 22"); // Japanese space
+```
+
54
+Сomments inside literals are not supported:
55
+```rust,compile_fail
56
+hex_literal::hex!("0123 // foo");
57
58
59
+Every literal must contain an even number of hex characters:
60
61
+hex_literal::hex!(
62
+ "01234"
63
+ "567"
64
+);
65
```
66
67
## Minimum Supported Rust Version
0 commit comments