diff options
| author | Chuck Bassett <iamchuckb@gmail.com> | 2015-06-07 15:06:58 -0400 |
|---|---|---|
| committer | Chuck Bassett <iamchuckb@gmail.com> | 2015-06-07 15:06:58 -0400 |
| commit | 675b3decadc149b400d9afc4c59e0703a0b100ff (patch) | |
| tree | 9ce186f2b06ed144aa8a131dffd9546349d5517d /src/libstd/array.rs | |
| parent | ae74652b4a0e0e56a91d9a9dd71ab01e51131dc5 (diff) | |
| download | rust-675b3decadc149b400d9afc4c59e0703a0b100ff.tar.gz rust-675b3decadc149b400d9afc4c59e0703a0b100ff.zip | |
Update doctest in comments.md
For a user following the path of reading Chapter 5: Syntax & Symantics prior to Chapter 4: Learn Rust, this will be the first time they have encountered executable tests inside documentation comments. The test will fail because the `add_one` function is not defined in the context of the doctest. This might not be the optimal place to introduce and explain the `/// #` notation but I think it is important that this snippet pass as a test when `rustdoc --test` is run against it if it is going to be shown.
Diffstat (limited to 'src/libstd/array.rs')
0 files changed, 0 insertions, 0 deletions
