Skip to content

Commit c6ad2de

Browse files
remenPetter Remen
authored and
Petter Remen
committed
Fixup in guide-testing.md
Added back-quotes around #[cfg(test)] which was otherwise being interpreted as starting a header
1 parent 93fb12e commit c6ad2de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/guide-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ mod tests {
6363
}
6464
~~~
6565

66-
Additionally #[test] items behave as if they also have the
67-
#[cfg(test)] attribute, and will not be compiled when the --test flag
66+
Additionally `#[test]` items behave as if they also have the
67+
`#[cfg(test)]` attribute, and will not be compiled when the --test flag
6868
is not used.
6969

7070
Tests that should not be run can be annotated with the 'ignore'

0 commit comments

Comments
 (0)