Skip to content

Commit

Permalink
Add some missing backticks in doc comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 7, 2024
1 parent 2bdf84c commit ab59e79
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,19 +451,19 @@ impl<B: BitBlock> BitVec<B> {
}
}

/// Exposes the raw block storage of this BitVec
/// Exposes the raw block storage of this `BitVec`.
///
/// Only really intended for BitSet.
/// Only really intended for `BitSet`.
#[inline]
pub fn storage(&self) -> &[B] {
&self.storage
}

/// Exposes the raw block storage of this BitVec
/// Exposes the raw block storage of this `BitVec`.
///
/// # Safety
///
/// Can probably cause unsafety. Only really intended for BitSet.
/// Can probably cause unsafety. Only really intended for `BitSet`.
#[inline]
pub unsafe fn storage_mut(&mut self) -> &mut Vec<B> {
&mut self.storage
Expand Down Expand Up @@ -1525,7 +1525,7 @@ impl<B: BitBlock> BitVec<B> {
self.fix_last_block();
}

/// Removes the last bit from the BitVec, and returns it. Returns None if the BitVec is empty.
/// Removes the last bit from the `BitVec`, and returns it. Returns `None` if the `BitVec` is empty.
///
/// # Examples
///
Expand Down Expand Up @@ -1585,11 +1585,11 @@ impl<B: BitBlock> BitVec<B> {
self.nbits
}

/// Sets the number of bits that this BitVec considers initialized.
/// Sets the number of bits that this `BitVec` considers initialized.
///
/// # Safety
///
/// Almost certainly can cause bad stuff. Only really intended for BitSet.
/// Almost certainly can cause bad stuff. Only really intended for `BitSet`.
#[inline]
pub unsafe fn set_len(&mut self, len: usize) {
self.nbits = len;
Expand Down

0 comments on commit ab59e79

Please sign in to comment.