about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Bjørnager Jensen <gabriel@achernar.io>2025-04-08 17:07:41 +0200
committerGabriel Bjørnager Jensen <gabriel@achernar.io>2025-04-08 17:07:50 +0200
commitf2dee82052783ad6447d69aa26869db1f71f04cb (patch)
tree9b352284bcb55ac4382923a96771a36ddeefcdc0
parente5fefc359bec532134013baaabc92560bfb61578 (diff)
downloadrust-f2dee82052783ad6447d69aa26869db1f71f04cb.tar.gz
rust-f2dee82052783ad6447d69aa26869db1f71f04cb.zip
Update 'u8'-to-and-from-'i8' suggestions;
-rw-r--r--library/core/src/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs
index 151e128cd78..4c51fcf3b52 100644
--- a/library/core/src/num/mod.rs
+++ b/library/core/src/num/mod.rs
@@ -99,8 +99,8 @@ macro_rules! i8_xe_bytes_doc {
 
 **Note**: This function is meaningless on `i8`. Byte order does not exist as a
 concept for byte-sized integers. This function is only provided in symmetry
-with larger integer types. You can cast from and to `u8` using `as i8` and `as
-u8`.
+with larger integer types. You can cast from and to `u8` using
+[`cast_signed`](u8::cast_signed) and [`cast_unsigned`](Self::cast_unsigned).
 
 "
     };