From 388c35ed4bad0b1444c470846d768b8a940ea13e Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Thu, 21 Jun 2018 12:27:07 +0200 Subject: [PATCH] fix run-time detection in doc-test --- library/stdarch/coresimd/x86/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/coresimd/x86/mod.rs b/library/stdarch/coresimd/x86/mod.rs index 8afe17dd12e6..31d950a2c638 100644 --- a/library/stdarch/coresimd/x86/mod.rs +++ b/library/stdarch/coresimd/x86/mod.rs @@ -282,7 +282,7 @@ types! { /// let eight_ones = _mm256_set1_ps(1.0); /// let eight_floats = _mm256_set_ps(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0); /// # } - /// # if is_x86_feature_detected!("sse") { unsafe { foo() } } + /// # if is_x86_feature_detected!("avx") { unsafe { foo() } } /// # } /// ``` #[stable(feature = "simd_x86", since = "1.27.0")]