about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJay3332 <40323796+jay3332@users.noreply.github.com>2022-09-12 21:40:28 -0400
committerGitHub <noreply@github.com>2022-09-12 21:40:28 -0400
commitba3b3bcc17a37295b89f21f24ec93f03356d6d99 (patch)
tree4b1ffac9dfecdecc76f632cb671341a0cd5b6661
parent089584db01c85c24cc98a532eb7d02f651a2c137 (diff)
downloadrust-ba3b3bcc17a37295b89f21f24ec93f03356d6d99.tar.gz
rust-ba3b3bcc17a37295b89f21f24ec93f03356d6d99.zip
Fix typo in concat_bytes documentation
This fixes the typo `&[u8, _]` -> `&[u8; _]`
-rw-r--r--library/core/src/macros/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index b37e9142d88..fd96e1ff77d 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -1016,7 +1016,7 @@ pub(crate) mod builtin {
     /// Concatenates literals into a byte slice.
     ///
     /// This macro takes any number of comma-separated literals, and concatenates them all into
-    /// one, yielding an expression of type `&[u8, _]`, which represents all of the literals
+    /// one, yielding an expression of type `&[u8; _]`, which represents all of the literals
     /// concatenated left-to-right. The literals passed can be any combination of:
     ///
     /// - byte literals (`b'r'`)