about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/std_detect')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/arch/x86.rs7
-rw-r--r--library/stdarch/crates/std_detect/src/detect/cache.rs2
-rw-r--r--library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs2
3 files changed, 5 insertions, 6 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/arch/x86.rs b/library/stdarch/crates/std_detect/src/detect/arch/x86.rs
index 6a3e11de3df..580d7111bdd 100644
--- a/library/stdarch/crates/std_detect/src/detect/arch/x86.rs
+++ b/library/stdarch/crates/std_detect/src/detect/arch/x86.rs
@@ -6,9 +6,8 @@
 //! whether a feature is available (bit is set) or unavaiable (bit is cleared).
 //!
 //! The enum `Feature` is used to map bit positions to feature names, and the
-//! the `__crate::detect::check_for!` macro is used to map string literals (e.g.
-//! "avx") to these bit positions (e.g. `Feature::avx`).
-//!
+//! the `__crate::detect::check_for!` macro is used to map string literals (e.g.,
+//! "avx") to these bit positions (e.g., `Feature::avx`).
 //!
 //! The run-time feature detection is performed by the
 //! `__crate::detect::check_for(Feature) -> bool` function. On its first call,
@@ -20,7 +19,7 @@
 /// x86/x86-64 platforms.
 ///
 /// This macro is provided in the standard library and will detect at runtime
-/// whether the specified CPU feature is detected. This does *not* resolve at
+/// whether the specified CPU feature is detected. This does **not** resolve at
 /// compile time unless the specified feature is already enabled for the entire
 /// crate. Runtime detection currently relies mostly on the `cpuid` instruction.
 ///
diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs
index ee1914875cf..ac1f3e4fae7 100644
--- a/library/stdarch/crates/std_detect/src/detect/cache.rs
+++ b/library/stdarch/crates/std_detect/src/detect/cache.rs
@@ -147,7 +147,7 @@ impl Cache {
     }
 }
 
-/// Test the `bit` of the storage. If the storage has not been initialized,
+/// Tests the `bit` of the storage. If the storage has not been initialized,
 /// initializes it with the result of `f()`.
 ///
 /// On its first invocation, it detects the CPU features and caches them in the
diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs
index 6ccdbbc88a8..5d935a26c89 100644
--- a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs
+++ b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs
@@ -134,7 +134,7 @@ fn getauxval(key: usize) -> Result<usize, ()> {
 fn auxv_from_file(file: &str) -> Result<AuxVec, ()> {
     let mut file = File::open(file).map_err(|_| ())?;
 
-    // See https://github.com/torvalds/linux/blob/v3.19/include/uapi/linux/auxvec.h
+    // See <https://github.com/torvalds/linux/blob/v3.19/include/uapi/linux/auxvec.h>.
     //
     // The auxiliary vector contains at most 32 (key,value) fields: from
     // `AT_EXECFN = 31` to `AT_NULL = 0`. That is, a buffer of