Skip to content

Commit 081372c

Browse files
committed
Unwrap text
1 parent 3ff8b84 commit 081372c

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
# Coverage instrumentation attributes
22

3-
The following [attributes] are used for controlling coverage instrumentation,
4-
which can be enabled with the `-C instrument-coverage` compiler flag.
3+
The following [attributes] are used for controlling coverage instrumentation, which can be enabled with the `-C instrument-coverage` compiler flag.
54

65
### The `coverage` attribute
76

8-
The *`coverage` [attribute]* indicates whether a function should instrument code
9-
coverage at all and show up in code coverage reports. It can only be controlled
10-
at the function level, but it can be applied to modules, `impl` blocks, or
11-
anything that can contain functions.
7+
The *`coverage` [attribute]* indicates whether a function should instrument code coverage at all and show up in code coverage reports. It can only be controlled at the function level, but it can be applied to modules, `impl` blocks, or anything that can contain functions.
128

139
There are two ways to use the coverage attribute:
1410

15-
* `#[coverage(off)]` indicates that all functions within an item, recursively,
16-
should not be instrumented, unless specified by another attribute.
17-
* `#[coverage(on)]` (the default) indicates that all functions within an item,
18-
recursively, *should* be instrumented, unless specified by another attribute.
11+
* `#[coverage(off)]` indicates that all functions within an item, recursively, should not be instrumented, unless specified by another attribute.
12+
* `#[coverage(on)]` (the default) indicates that all functions within an item, recursively, *should* be instrumented, unless specified by another attribute.
1913

20-
More-specific attributes always take priority over less-specific ones, e.g.
21-
if a crate is marked `#![coverage(off)]`, then functions inside that crate
22-
marked `#[coverage(on)]` will still have coverage.
14+
More-specific attributes always take priority over less-specific ones, e.g. if a crate is marked `#![coverage(off)]`, then functions inside that crate marked `#[coverage(on)]` will still have coverage.
2315

2416
[attribute]: ../attributes.md
2517
[attributes]: ../attributes.md

0 commit comments

Comments
 (0)