chiark / gitweb /
docs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 14 Nov 2024 22:15:23 +0000 (22:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 14 Nov 2024 22:15:23 +0000 (22:15 +0000)
src/lib.rs

index d1c43849446f2414ca8846f46fec790fec3c1852..b89da5d0849c893ad8c18a2fec60b41e608bd2cf 100644 (file)
@@ -13,7 +13,7 @@ use std::ptr::NonNull;
 pub struct NoAliasSingleton {
 }
 
-/// Something where `&self` implies `&NoAliasSingleton`
+/// Token-like: `&self` implies `&NoAliasSingleton`
 ///
 /// Implemented for `NoAliasSingleton` and the ZST reference tokens,
 /// and `&`-references to them.
@@ -25,7 +25,7 @@ pub unsafe trait IsRefToken<'a>: Sized {
     }
 }
 
-/// Something where `&mut self` implies `&mut NoAliasSingleton`
+/// Token-like `&mut self` implies `&mut NoAliasSingleton`
 ///
 /// Implemented for `NoAliasSingleton` and `MutToken`,
 /// and `&mut`-references to them.