Skip to content

Commit db943a6

Browse files
Alcarognzlbg
authored andcommitted
Fix outdated docs
This macro is no longer named the same between platforms, so this sentence is just misleading at this point.
1 parent 066f0b0 commit db943a6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

stdsimd/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,10 @@
143143
/// expression evaluating to whether the local CPU has the AVX2 feature or
144144
/// not.
145145
///
146-
/// Note that this macro, like the `arch` module, is platform-specific. The
147-
/// name of the macro is the same across platforms, but the arguments to the
148-
/// macro are only the features for the current platform. For example calling
149-
/// `is_x86_feature_detected!("avx2")` on ARM will be a compile time
150-
/// error. To ensure we don't hit this error a statement level `#[cfg]` is
151-
/// used to only compile usage of the macro on `x86`/`x86_64`.
146+
/// Note that this macro, like the `arch` module, is platform-specific. For
147+
/// example calling `is_x86_feature_detected!("avx2")` on ARM will be a
148+
/// compile time error. To ensure we don't hit this error a statement level
149+
/// `#[cfg]` is used to only compile usage of the macro on `x86`/`x86_64`.
152150
///
153151
/// * Next up we see our AVX2-enabled function, `foo_avx2`. This function is
154152
/// decorated with the `#[target_feature]` attribute which enables a CPU

0 commit comments

Comments
 (0)