Skip to content

Commit dfd0385

Browse files
authored
Rollup merge of #77176 - austinkeeley:intrinsics-documentatation-error, r=jyn514
Removing erroneous semicolon in transmute documentation There is a semicolon in the example code that causes the expected value to not be returned.
2 parents 19d9a59 + 1d3717d commit dfd0385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ extern "rust-intrinsic" {
905905
/// let raw_bytes = [0x78, 0x56, 0x34, 0x12];
906906
///
907907
/// let num = unsafe {
908-
/// std::mem::transmute::<[u8; 4], u32>(raw_bytes);
908+
/// std::mem::transmute::<[u8; 4], u32>(raw_bytes)
909909
/// };
910910
///
911911
/// // use `u32::from_ne_bytes` instead

0 commit comments

Comments
 (0)