Skip to content

Commit f683003

Browse files
committed
tweak readme
1 parent d9965cc commit f683003

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

hex-literal/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ let bytes1 = hex!("
3131
00010203 04050607
3232
08090a0b 0c0d0e0f
3333
");
34-
assert_eq!(bytes1, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
34+
assert_eq!(
35+
bytes1,
36+
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
37+
);
3538

36-
// It's possible to use several literals (results will be concatenated)
39+
// It's possible to use several literals
40+
// (results will be concatenated)
3741
let bytes2 = hex!(
3842
"00010203 04050607" // first half
39-
"08090a0b" /* block comment */ "0c0d0e0f" // second half
43+
"08090a0b 0c0d0e0f" // second half
4044
);
4145
assert_eq!(bytes1, bytes2);
4246
```

0 commit comments

Comments
 (0)