about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-07-20 11:29:40 +0530
committerGitHub <noreply@github.com>2022-07-20 11:29:40 +0530
commitfeebc5f4d5e62ecf50a88d8ce2d9db13d3484926 (patch)
tree51d85e154be6be87ed6b55d3408ed88ce4e02805
parentf02bbbcba6faf0fddce6ded97dea6f934d0f642b (diff)
parent94f633b0023c02837cc53fb4be3a8ae4f2e900b7 (diff)
downloadrust-feebc5f4d5e62ecf50a88d8ce2d9db13d3484926.tar.gz
rust-feebc5f4d5e62ecf50a88d8ce2d9db13d3484926.zip
Rollup merge of #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
-rw-r--r--library/core/src/num/int_macros.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs
index 147f04a3f12..eb458f3866e 100644
--- a/library/core/src/num/int_macros.rs
+++ b/library/core/src/num/int_macros.rs
@@ -2612,7 +2612,7 @@ macro_rules! int_impl {
         /// Create an integer value from its representation as a byte array in
         /// big endian.
         ///
-        #[doc = $to_xe_bytes_doc]
+        #[doc = $from_xe_bytes_doc]
         ///
         /// # Examples
         ///
@@ -2641,7 +2641,7 @@ macro_rules! int_impl {
         /// Create an integer value from its representation as a byte array in
         /// little endian.
         ///
-        #[doc = $to_xe_bytes_doc]
+        #[doc = $from_xe_bytes_doc]
         ///
         /// # Examples
         ///
@@ -2677,7 +2677,7 @@ macro_rules! int_impl {
         /// [`from_be_bytes`]: Self::from_be_bytes
         /// [`from_le_bytes`]: Self::from_le_bytes
         ///
-        #[doc = $to_xe_bytes_doc]
+        #[doc = $from_xe_bytes_doc]
         ///
         /// # Examples
         ///