From 022e7c0bb90e1f7e3e485f16c5c3df616113940f Mon Sep 17 00:00:00 2001
From: Josh Triplett <josh@joshtriplett.org>
Date: Wed, 22 Jan 2025 09:19:24 +0200
Subject: [PATCH] Add doc aliases for BStr and BString

---
 library/alloc/src/bstr.rs | 1 +
 library/core/src/bstr.rs  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/library/alloc/src/bstr.rs b/library/alloc/src/bstr.rs
index acb60d9ca8618..61e61019b508c 100644
--- a/library/alloc/src/bstr.rs
+++ b/library/alloc/src/bstr.rs
@@ -46,6 +46,7 @@ use crate::vec::Vec;
 #[unstable(feature = "bstr", issue = "134915")]
 #[repr(transparent)]
 #[derive(Clone)]
+#[doc(alias = "BString")]
 pub struct ByteString(pub Vec<u8>);
 
 impl ByteString {
diff --git a/library/core/src/bstr.rs b/library/core/src/bstr.rs
index 9f20eb1a0e8ee..74e07f3d242cd 100644
--- a/library/core/src/bstr.rs
+++ b/library/core/src/bstr.rs
@@ -39,6 +39,7 @@ use crate::{fmt, hash};
 ///
 #[unstable(feature = "bstr", issue = "134915")]
 #[repr(transparent)]
+#[doc(alias = "BStr")]
 pub struct ByteStr(pub [u8]);
 
 impl ByteStr {