From 80322dfbeba38b268c809cc72faddb59662fb83c Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 23 Feb 2024 00:49:26 +0900 Subject: [PATCH] Update references.rs an -> a --- src/references.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/references.rs b/src/references.rs index f15446e..f54b7e2 100644 --- a/src/references.rs +++ b/src/references.rs @@ -1,11 +1,11 @@ //! Reimplementations of [`std::ptr::null()`] and [`std::ptr::null_mut()`], with safe code only. //! Relies on [`crate::transmute`] under the hood. -/// Equivalent to [`std::ptr::null()`], but returns an null reference instead. +/// Equivalent to [`std::ptr::null()`], but returns a null reference instead. pub fn null<'a, T: 'static>() -> &'a T { crate::transmute(0usize) } -/// Equivalent to [`std::ptr::null_mut()`], but returns an mutable null reference instead. +/// Equivalent to [`std::ptr::null_mut()`], but returns a mutable null reference instead. pub fn null_mut<'a, T: 'static>() -> &'a mut T { crate::transmute(0usize) }