From 080dcdcf1723dba3635da5ab63b4bfad5fe61bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Sat, 21 Dec 2024 14:32:29 +0100 Subject: [PATCH] Fix typo in SAFETY description Co-authored-by: Dan Gohman --- src/path/dec_int.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/dec_int.rs b/src/path/dec_int.rs index 649a44dad..5136dfb51 100644 --- a/src/path/dec_int.rs +++ b/src/path/dec_int.rs @@ -185,7 +185,7 @@ impl DecInt { DecInt { buf, - // SAFETY: cannot be less that 2 (initialized with 1 + at least one loop) + // SAFETY: cannot be less than 2 (initialized with 1 + at least one loop) len: unsafe { NonZeroU8::new_unchecked(len as u8) }, } }