about summary refs log tree commit diff
path: root/library/stdarch
diff options
context:
space:
mode:
authorusamoi <usamoi@outlook.com>2025-02-15 02:52:06 +0800
committerAmanieu d'Antras <amanieu@gmail.com>2025-02-24 14:23:31 +0000
commite5969976ddc8d4bd4887a071097756b6c66e6632 (patch)
treec2d6699197013dfee0aec96fb7d8626e4066da8f /library/stdarch
parentf53c07b3ffd8084dfe734d352b73f3c92a496665 (diff)
downloadrust-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.rs4
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);