Skip to content

Commit

Permalink
Fix typo and prettify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tandasat authored and Amanieu committed Dec 29, 2024
1 parent dc8925a commit b04d87c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/core_arch/src/x86/cpuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ pub struct CpuidResult {
}

/// Returns the result of the `cpuid` instruction for a given `leaf` (`EAX`)
/// and
/// `sub_leaf` (`ECX`).
/// and `sub_leaf` (`ECX`).
///
/// The highest-supported leaf value is returned by the first tuple argument of
/// [`__get_cpuid_max(0)`](fn.__get_cpuid_max.html). For leaves containung
/// [`__get_cpuid_max(0)`](fn.__get_cpuid_max.html). For leaves containing
/// sub-leaves, the second tuple argument returns the highest-supported
/// sub-leaf
/// value.
/// sub-leaf value.
///
/// The [CPUID Wikipedia page][wiki_cpuid] contains how to query which
/// information using the `EAX` and `ECX` registers, and the interpretation of
Expand Down

0 comments on commit b04d87c

Please sign in to comment.