Skip to content

Commit 70c35f7

Browse files
committed
Add doc aliases for BStr and BString
1 parent 1dc48ed commit 70c35f7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: alloc/src/bstr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use crate::vec::Vec;
4646
#[unstable(feature = "bstr", issue = "134915")]
4747
#[repr(transparent)]
4848
#[derive(Clone)]
49+
#[doc(alias = "BString")]
4950
pub struct ByteString(pub Vec<u8>);
5051

5152
impl ByteString {

Diff for: core/src/bstr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use crate::{fmt, hash};
3939
///
4040
#[unstable(feature = "bstr", issue = "134915")]
4141
#[repr(transparent)]
42+
#[doc(alias = "BStr")]
4243
pub struct ByteStr(pub [u8]);
4344

4445
impl ByteStr {

0 commit comments

Comments
 (0)