Skip to content

Commit 21e6c25

Browse files
authored
Update references.rs (#24)
an -> a
2 parents 667ffe8 + 80322df commit 21e6c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/references.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Reimplementations of [`std::ptr::null()`] and [`std::ptr::null_mut()`], with safe code only.
22
//! Relies on [`crate::transmute`] under the hood.
33
4-
/// Equivalent to [`std::ptr::null()`], but returns an null reference instead.
4+
/// Equivalent to [`std::ptr::null()`], but returns a null reference instead.
55
pub fn null<'a, T: 'static>() -> &'a T {
66
crate::transmute(0usize)
77
}
8-
/// Equivalent to [`std::ptr::null_mut()`], but returns an mutable null reference instead.
8+
/// Equivalent to [`std::ptr::null_mut()`], but returns a mutable null reference instead.
99
pub fn null_mut<'a, T: 'static>() -> &'a mut T {
1010
crate::transmute(0usize)
1111
}

0 commit comments

Comments
 (0)