Skip to content

Commit

Permalink
Merge pull request #101 from waywardmonkeys/add-some-backticks
Browse files Browse the repository at this point in the history
Add some missing backticks in doc comments.
  • Loading branch information
pczarn authored Jul 7, 2024
2 parents 7ee6a86 + ab59e79 commit f6f2f42
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 f6f2f42

Please sign in to comment.