Skip to content

Commit feebc5f

Browse files
authored
Rollup merge of rust-lang#99452 - Stargateur:fix/typo, r=JohnTitor
int_macros was only using to_xe_bytes_doc and not from_xe_bytes_doc typo in doc [here](https://doc.rust-lang.org/std/primitive.isize.html#method.from_ne_bytes) "returns" => "takes" `@rustbot` label +T-rustdoc
2 parents f02bbbc + 94f633b commit feebc5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/num/int_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ macro_rules! int_impl {
26122612
/// Create an integer value from its representation as a byte array in
26132613
/// big endian.
26142614
///
2615-
#[doc = $to_xe_bytes_doc]
2615+
#[doc = $from_xe_bytes_doc]
26162616
///
26172617
/// # Examples
26182618
///
@@ -2641,7 +2641,7 @@ macro_rules! int_impl {
26412641
/// Create an integer value from its representation as a byte array in
26422642
/// little endian.
26432643
///
2644-
#[doc = $to_xe_bytes_doc]
2644+
#[doc = $from_xe_bytes_doc]
26452645
///
26462646
/// # Examples
26472647
///
@@ -2677,7 +2677,7 @@ macro_rules! int_impl {
26772677
/// [`from_be_bytes`]: Self::from_be_bytes
26782678
/// [`from_le_bytes`]: Self::from_le_bytes
26792679
///
2680-
#[doc = $to_xe_bytes_doc]
2680+
#[doc = $from_xe_bytes_doc]
26812681
///
26822682
/// # Examples
26832683
///

0 commit comments

Comments
 (0)