Skip to content

Commit 3316ccd

Browse files
committed
typos
1 parent 5c4c239 commit 3316ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const OWN_FLAG: usize = !LEN_MASK;
4040
impl<'a> MownStr<'a> {
4141
pub const fn from_str(other: &'a str) -> MownStr<'a> {
4242
assert!(other.len() <= LEN_MASK);
43-
// NB: The only 'const' constuctor for NonNull is new_unchecked
43+
// NB: The only 'const' constructor for NonNull is new_unchecked
4444
// so we need an unsafe block.
4545

4646
// SAFETY: we need a *mut u8 for new_unchecked,
@@ -477,7 +477,7 @@ mod test {
477477
#[test]
478478
fn no_memory_leak() {
479479
// performs several MownStr allocation in sequence,
480-
// droping each one before allocating the next one
480+
// dropping each one before allocating the next one
481481
// (unless the v.pop() line below is commented out).
482482
//
483483
// If there is no memory leak,

0 commit comments

Comments
 (0)