Skip to content

Commit f14f691

Browse files
Merge pull request #314 from slanterns/patch-1
Fix typo in performance guide
2 parents c6ea275 + 082dd93 commit f14f691

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

perf-guide/src/target-feature/rustflags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ There are two flags which can be used to enable specific vector extensions:
1515
- Provides the compiler with a comma-separated set of instruction extensions
1616
to enable.
1717

18-
**Example**: Use `-C target-features=+sse3,+avx` to enable generating instructions
18+
**Example**: Use `-C target-feature=+sse3,+avx` to enable generating instructions
1919
for [Streaming SIMD Extensions 3](https://en.wikipedia.org/wiki/SSE3) and
2020
[Advanced Vector Extensions](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions).
2121

@@ -33,9 +33,9 @@ There are two flags which can be used to enable specific vector extensions:
3333

3434
- Note that all CPU features are independent, and will have to be enabled individually.
3535

36-
**Example**: Setting `-C target-features=+avx2` will _not_ enable `fma`, even though
36+
**Example**: Setting `-C target-feature=+avx2` will _not_ enable `fma`, even though
3737
all CPUs which support AVX2 also support FMA. To enable both, one has to use
38-
`-C target-features=+avx2,+fma`
38+
`-C target-feature=+avx2,+fma`
3939

4040
- Some features also depend on other features, which need to be enabled for the
4141
target instructions to be generated.

0 commit comments

Comments
 (0)