We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4c239 commit 3316ccdCopy full SHA for 3316ccd
src/lib.rs
@@ -40,7 +40,7 @@ const OWN_FLAG: usize = !LEN_MASK;
40
impl<'a> MownStr<'a> {
41
pub const fn from_str(other: &'a str) -> MownStr<'a> {
42
assert!(other.len() <= LEN_MASK);
43
- // NB: The only 'const' constuctor for NonNull is new_unchecked
+ // NB: The only 'const' constructor for NonNull is new_unchecked
44
// so we need an unsafe block.
45
46
// SAFETY: we need a *mut u8 for new_unchecked,
@@ -477,7 +477,7 @@ mod test {
477
#[test]
478
fn no_memory_leak() {
479
// performs several MownStr allocation in sequence,
480
- // droping each one before allocating the next one
+ // dropping each one before allocating the next one
481
// (unless the v.pop() line below is commented out).
482
//
483
// If there is no memory leak,
0 commit comments