about summary refs log tree commit diff
diff options
context:
space:
mode:
authorColoredCarrot <julian.koch@tum.de>2020-07-16 11:04:01 +0200
committerGitHub <noreply@github.com>2020-07-16 11:04:01 +0200
commit593c7fe6d6b44c87df07d62996cf575fb3f62ce9 (patch)
tree60c87bba9e9a1216eaca9ae9128a151528956e77
parente2e29de5e8a2908260d54182638241ff086a26c2 (diff)
downloadrust-593c7fe6d6b44c87df07d62996cf575fb3f62ce9.tar.gz
rust-593c7fe6d6b44c87df07d62996cf575fb3f62ce9.zip
Fix typo in std::mem::transmute documentation
u32::from_ge_bytes method does not exist; replace with u32::from_be_bytes
-rw-r--r--src/libcore/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index 540a8cfb290..45b636b0089 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -1126,7 +1126,7 @@ extern "rust-intrinsic" {
     ///
     /// // use `u32::from_ne_bytes` instead
     /// let num = u32::from_ne_bytes(raw_bytes);
-    /// // or use `u32::from_le_bytes` or `u32::from_ge_bytes` to specify the endianness
+    /// // or use `u32::from_le_bytes` or `u32::from_be_bytes` to specify the endianness
     /// let num = u32::from_le_bytes(raw_bytes);
     /// assert_eq!(num, 0x12345678);
     /// let num = u32::from_be_bytes(raw_bytes);