Skip to content

Commit

Permalink
Update src/testing/doc-tests.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dustin J. Mitchell <[email protected]>
  • Loading branch information
nyurik and djmitche authored Sep 29, 2023
1 parent 208eca9 commit 5ecee6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/doc-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ pub fn shorten_string(s: &str, length: usize) -> &str {

* Code blocks in `///` comments are automatically seen as Rust code.
* The code will be compiled and executed as part of `cargo test`.
* Adding `#` in the code will hide it from the docs, but will still compile/run it.
* Adding `# ` in the code will hide it from the docs, but will still compile/run it.
* Test the above code on the [Rust Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3ce2ad13ea1302f6572cb15cd96becf0).

0 comments on commit 5ecee6a

Please sign in to comment.