提交 c6ad2de6 编写于 作者: P Petter Remen 提交者: Petter Remen

Fixup in guide-testing.md

Added back-quotes around #[cfg(test)] which was otherwise
being interpreted as starting a header
上级 93fb12e3
......@@ -63,8 +63,8 @@ mod tests {
}
~~~
Additionally #[test] items behave as if they also have the
#[cfg(test)] attribute, and will not be compiled when the --test flag
Additionally `#[test]` items behave as if they also have the
`#[cfg(test)]` attribute, and will not be compiled when the --test flag
is not used.
Tests that should not be run can be annotated with the 'ignore'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册