Skip to content

Commit

Permalink
Add doc aliases for BStr and BString
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jan 22, 2025
1 parent 22a4ec3 commit 022e7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/bstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions library/core/src/bstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 022e7c0

Please sign in to comment.