chiark / gitweb /
typos
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Nov 2024 01:15:32 +0000 (01:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Nov 2024 01:17:55 +0000 (01:17 +0000)
src/lib.rs

index 14bac5a89c30a1f0f54577ce218b206d2d1bd52a..4efe5d39e86e65a3cacc3bc809be7cdad96949df 100644 (file)
@@ -15,7 +15,7 @@
 //!
 //!  * Not defeating the library's anti-alias protections.
 //!    In particular: holding a suitable singleton ([`NoAliasSingleton`])
-//!    which each `Ptr` belogns to
+//!    which each `Ptr` belongs to
 //!    (even though there is nothing in the API
 //!    eg, lifetimes, to link them).
 //!
@@ -96,7 +96,7 @@ use std::ptr::NonNull;
 ///
 /// Ensuring that `Ptr`s are freed at the right time is up to the caller,
 /// But aliasing, and other Rust unsafe footguns,
-/// is (largely) handled by the library.
+/// are (largely) handled by the library.
 /// See the [module-level documentation](crate).
 pub struct Ptr<T: ?Sized> {
     /// # SAFETY
@@ -154,7 +154,7 @@ pub struct TokenRef<'a>(
     PhantomData<&'a NoAliasSingleton>,
 );
 
-/// `&mut` [`NoAliasSingleton`], but zero-sized
+/// `&mut` [`NoAliasSingleton`], but zero-sized
 ///
 /// See [`TokenRef`]
 #[derive(Debug)]