Skip to content

Commit 0747f07

Browse files
authored
Rollup merge of rust-lang#101745 - jay3332:patch-1, r=JohnTitor
Fix typo in concat_bytes documentation This fixes the typo `&[u8, _]` -> `&[u8; _]`
2 parents 5e0f6bb + ba3b3bc commit 0747f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ pub(crate) mod builtin {
10161016
/// Concatenates literals into a byte slice.
10171017
///
10181018
/// This macro takes any number of comma-separated literals, and concatenates them all into
1019-
/// one, yielding an expression of type `&[u8, _]`, which represents all of the literals
1019+
/// one, yielding an expression of type `&[u8; _]`, which represents all of the literals
10201020
/// concatenated left-to-right. The literals passed can be any combination of:
10211021
///
10221022
/// - byte literals (`b'r'`)

0 commit comments

Comments
 (0)