diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2022-03-12 16:43:38 -0800 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2022-03-12 16:43:38 -0800 |
| commit | 2b1f249ecf4a3b52bdac520a641c502be5048f8a (patch) | |
| tree | 00aedc0807e792cff1f19d1c7d1f49618c2f804a | |
| parent | aabaf8430c37c5bab7bb2f7f494bf30605f2a809 (diff) | |
| download | rust-2b1f249ecf4a3b52bdac520a641c502be5048f8a.tar.gz rust-2b1f249ecf4a3b52bdac520a641c502be5048f8a.zip | |
Use reduce_sum in as_simd example
| -rw-r--r-- | library/core/src/slice/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 32d8988f149..c0eb000e877 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3536,7 +3536,7 @@ impl<T> [T] { /// suffix.iter().copied().sum(), /// ]); /// let sums = middle.iter().copied().fold(sums, f32x4::add); - /// sums.horizontal_sum() + /// sums.reduce_sum() /// } /// /// let numbers: Vec<f32> = (1..101).map(|x| x as _).collect(); |
