Skip to content

Commit ccbc70d

Browse files
committed
Fix various spelling and format errors
1 parent d3ef277 commit ccbc70d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/attributes/codegen.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ have no effect on a trait function without a body.
2121

2222
### The `inline` attribute
2323

24-
r[attributes.codgen.inline]
24+
r[attributes.codegen.inline]
2525

2626
r[attributes.codegen.inline.intro]
2727
The *`inline` [attribute]* suggests that a copy of the attributed function
@@ -46,7 +46,7 @@ There are three ways to use the inline attribute:
4646
4747
### The `cold` attribute
4848

49-
r[attribute.codegen.cold]
49+
r[attributes.codegen.cold]
5050

5151
The *`cold` [attribute]* suggests that the attributed function is unlikely to
5252
be called.
@@ -93,13 +93,13 @@ be used with a `target_feature` attribute.
9393

9494
### Available features
9595

96-
r[attributes.codegen.target_features.availability]
96+
r[attributes.codegen.target_feature.availability]
9797

9898
The following is a list of the available feature names.
9999

100100
#### `x86` or `x86_64`
101101

102-
r[attributes.codegen.target_features.x86]
102+
r[attributes.codegen.target_feature.x86]
103103

104104
Executing code with unsupported features is undefined behavior on this platform.
105105
Hence this platform requires that `#[target_feature]` is only applied to [`unsafe`
@@ -482,7 +482,7 @@ r[attributes.codegen.instruction_set]
482482
r[attributes.codegen.instruction_set.restriction]
483483
The *`instruction_set` [attribute]* may be applied to a function to control which instruction set the function will be generated for.
484484

485-
r[attributes.codegen.instruction_set.behaviour]
485+
r[attributes.codegen.instruction_set.behavior]
486486
This allows mixing more than one instruction set in a single program on CPU architectures that support it.
487487

488488
r[attributes.codegen.instruction_set.syntax]

src/attributes/diagnostics.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ The following keys have the given meaning:
499499
* `label` --- The text for the label shown inline in the broken code in the error message.
500500
* `note` --- Provides additional notes.
501501
502-
r[attributes.diagnostic.on_unimplemented-note-repetition]
502+
r[attributes.diagnostic.on_unimplemented.note-repetition]
503503
The `note` option can appear several times, which results in several note messages being emitted.
504504
505505
r[attributes.diagnostic.on_unimplemented.repetition]
@@ -509,18 +509,18 @@ r[attributes.diagnostic.on_unimplemented.warnings]
509509
Any other occurrence generates an lint warning.
510510
For any other non-existing option a lint-warning is generated.
511511
512-
r[attributes.diagnostic.format-string]
512+
r[attributes.diagnostic.on_unimplemented.format-string]
513513
All three options accept a string as an argument, interpreted using the same formatting as a [`std::fmt`] string.
514514
515-
r[attributes.diagnostic.format-parameters]
515+
r[attributes.diagnostic.on_unimplemented.format-parameters]
516516
Format parameters with the given named parameter will be replaced with the following text:
517517
* `{Self}` --- The name of the type implementing the trait.
518518
* `{` *GenericParameterName* `}` --- The name of the generic argument's type for the given generic parameter.
519519
520-
r[attributes.diagnostic.invalid-formats]
520+
r[attributes.diagnostic.on_unimplemented.invalid-formats]
521521
Any other format parameter will generate a warning, but will otherwise be included in the string as-is.
522522
523-
r[attributes.diagnostic.invalid-string]
523+
r[attributes.diagnostic.on_unimplemented.invalid-string]
524524
Invalid format strings may generate a warning, but are otherwise allowed, but may not display as intended.
525525
Format specifiers may generate a warning, but are otherwise ignored.
526526

src/attributes/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Test functions must be free, monomorphic functions that take no arguments, and t
3131
> Note: The test mode is enabled by passing the `--test` argument to `rustc`
3232
> or using `cargo test`.
3333
34-
r[attributes.testing.success]
34+
r[attributes.testing.test.success]
3535
The test harness calls the returned value's [`report`] method, and classifies the test as passed or failed depending on whether the resulting [`ExitCode`] represents successful termination.
3636
In particular:
3737
* Tests that return `()` pass as long as they terminate and do not panic.
@@ -84,7 +84,7 @@ r[attributes.testing.should_panic.target]
8484
A function annotated with the `test` attribute that returns `()` can also be
8585
annotated with the `should_panic` attribute.
8686

87-
r[attributes.testing.should_panic.behaviour]
87+
r[attributes.testing.should_panic.behavior]
8888
The *`should_panic` attribute*
8989
makes the test only pass if it actually panics.
9090

0 commit comments

Comments
 (0)