diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs index 0b1837d..42eb51b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,14 @@ //! doing FFI interactions. A non-insignificant portion of them came from raw //! pointers, `as_ptr`, `as_mut_ptr`, and the like. This removes that cognitive //! overhead. +//! +//! And as [Amos once said], "Until we demand better of our tools, we are +//! doomed to be woken up in the middle of the night, over and over again, +//! because some nil value slipped in where it never should have.". That is, we +//! are doomed to repeat the same mistakes over and over again. So we must +//! demand better of our tools! +//! +//! [Amos once said]: https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang use core::cell::UnsafeCell; use core::marker::PhantomData; @@ -107,14 +115,14 @@ pub trait AsMutLtPtr: AsLtPtr { pub trait SliceExt<T>: impls::slice::Sealed { /// Returns the two raw pointers spanning the slice. /// - /// See [`[T]::as_ptr_range`] for extended documentation. + /// See [`slice::as_ptr_range`] for extended documentation. /// /// The pointers returned by this function have bound lifetimes. fn as_lt_ptr_range<'a>(&'a self) -> Range<ConstLtPtr<'a, T>>; /// Returns the two unsafe mutable pointers spanning the slice. /// - /// See [`[T]::as_mut_ptr_range`] for extended documentation. + /// See [`slice::as_mut_ptr_range`] for extended documentation. /// /// The pointers returned by this function have bound lifetimes. fn as_mut_lt_ptr_range<'a>(&'a mut self) -> Range<MutLtPtr<'a, T>>; |