diff options
| author | usamoi <usamoi@outlook.com> | 2025-02-15 02:52:06 +0800 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-02-24 14:23:31 +0000 |
| commit | e5969976ddc8d4bd4887a071097756b6c66e6632 (patch) | |
| tree | c2d6699197013dfee0aec96fb7d8626e4066da8f /library/stdarch | |
| parent | f53c07b3ffd8084dfe734d352b73f3c92a496665 (diff) | |
| download | rust-e5969976ddc8d4bd4887a071097756b6c66e6632.tar.gz rust-e5969976ddc8d4bd4887a071097756b6c66e6632.zip | |
fix doctest for __m128d
Diffstat (limited to 'library/stdarch')
| -rw-r--r-- | library/stdarch/crates/core_arch/src/x86/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/crates/core_arch/src/x86/mod.rs b/library/stdarch/crates/core_arch/src/x86/mod.rs index e97fd6143a8..9480c23ba1c 100644 --- a/library/stdarch/crates/core_arch/src/x86/mod.rs +++ b/library/stdarch/crates/core_arch/src/x86/mod.rs @@ -130,13 +130,13 @@ types! { /// use std::arch::x86_64::*; /// /// # fn main() { - /// # #[target_feature(enable = "sse")] + /// # #[target_feature(enable = "sse2")] /// # unsafe fn foo() { unsafe { /// let two_zeros = _mm_setzero_pd(); /// let two_ones = _mm_set1_pd(1.0); /// let two_floats = _mm_set_pd(1.0, 2.0); /// # }} - /// # if is_x86_feature_detected!("sse") { unsafe { foo() } } + /// # if is_x86_feature_detected!("sse2") { unsafe { foo() } } /// # } /// ``` pub struct __m128d(2 x f64); |
