Skip to content

Commit 043c99f

Browse files
committed
Fix style in modified chapters
1 parent 2b5d973 commit 043c99f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/attributes/codegen.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ r[attributes.codegen.track_caller]
347347

348348
r[attributes.codegen.track_caller.restriction]
349349
The `track_caller` attribute may be applied to any function with [`"Rust"` ABI][rust-abi]
350-
with the exception of the entry point `fn main`.
350+
with the exception of the entry point `fn main`.
351351

352352
r[attributes.codegen.track_caller.traits]
353353
When applied to functions and methods in trait declarations, the attribute applies to all implementations. If the trait provides a

src/attributes/derive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ r[attributes.derive]
55

66
r[attributes.derived.general]
77
The *`derive` attribute* allows new [items] to be automatically generated for
8-
data structures.
8+
data structures.
99

1010
r[attributes.derive.syntax]
1111
It uses the [_MetaListPaths_] syntax to specify a list of

src/attributes/diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ messages during compilation.
1010
r[attributes.diagnostics.lints]
1111

1212
A lint check names a potentially undesirable coding pattern, such as
13-
unreachable code or omitted documentation.
13+
unreachable code or omitted documentation.
1414

1515
r[attributes.diagnostics.lints.level]
1616
The lint attributes `allow`,

src/attributes/limits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ r[attributes.limits.recursion_limits]
1111
r[attributes.limits.recursion_limits.application]
1212
The *`recursion_limit` attribute* may be applied at the [crate] level to set the
1313
maximum depth for potentially infinitely-recursive compile-time operations
14-
like macro expansion or auto-dereference.
14+
like macro expansion or auto-dereference.
1515

1616
r[attributes.limits.recursion_limits.syntax]
1717
It uses the [_MetaNameValueStr_]

src/attributes/testing.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ r[attributes.testing.test]
1313

1414

1515
r[attributes.testing.test.general]
16-
The *`test` attribute* marks a function to be executed as a test.
16+
The *`test` attribute* marks a function to be executed as a test.
1717

1818
r[attributes.testing.test.enabled]
19-
These functions are only compiled when in test mode.
19+
These functions are only compiled when in test mode.
2020

2121
r[attributes.testing.test.restriction]
2222
Test functions must be free, monomorphic functions that take no arguments, and the return type must implement the [`Termination`] trait, for example:
@@ -82,7 +82,7 @@ r[attributes.testing.should_panic]
8282

8383
r[attributes.testing.should_panic.restriction]
8484
A function annotated with the `test` attribute that returns `()` can also be
85-
annotated with the `should_panic` attribute.
85+
annotated with the `should_panic` attribute.
8686

8787
r[attributes.testing.should_panic.behaviour]
8888
The *`should_panic` attribute*

src/attributes/type_system.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ r[attributes.type-system.non_exhaustive]
1111

1212
r[attributes.type-system.non_exhaustive.general]
1313
The *`non_exhaustive` attribute* indicates that a type or variant may have
14-
more fields or variants added in the future.
14+
more fields or variants added in the future.
1515

1616
r[attributes.type-system.non_exhaustive.restriction]
1717
It can be applied to [`struct`s][struct], [`enum`s][enum], and `enum` variants.

0 commit comments

Comments
 (0)