From f683003c327af74edf6080cb3d66efd477917baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Wed, 5 Apr 2023 14:46:20 +0300 Subject: [PATCH] tweak readme --- hex-literal/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hex-literal/README.md b/hex-literal/README.md index 72d527e4..827cdd0e 100644 --- a/hex-literal/README.md +++ b/hex-literal/README.md @@ -31,12 +31,16 @@ let bytes1 = hex!(" 00010203 04050607 08090a0b 0c0d0e0f "); -assert_eq!(bytes1, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); +assert_eq!( + bytes1, + [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], +); -// It's possible to use several literals (results will be concatenated) +// It's possible to use several literals +// (results will be concatenated) let bytes2 = hex!( "00010203 04050607" // first half - "08090a0b" /* block comment */ "0c0d0e0f" // second half + "08090a0b 0c0d0e0f" // second half ); assert_eq!(bytes1, bytes2); ```