diff options
| author | ColoredCarrot <julian.koch@tum.de> | 2020-07-16 11:04:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-16 11:04:01 +0200 |
| commit | 593c7fe6d6b44c87df07d62996cf575fb3f62ce9 (patch) | |
| tree | 60c87bba9e9a1216eaca9ae9128a151528956e77 | |
| parent | e2e29de5e8a2908260d54182638241ff086a26c2 (diff) | |
| download | rust-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.rs | 2 |
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); |
