File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ rand = "0.6"
34
34
rand_xorshift = " 0.1"
35
35
serde = " 1"
36
36
serde_derive = " 1"
37
+ doc-comment = " 0.3"
Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ command to get a visualization of an nbody simulation. To see the
104
104
effect of using Rayon, press ` s ` to run sequentially and ` p ` to run in
105
105
parallel.
106
106
107
- ```
107
+ ``` text
108
108
> cd rayon-demo
109
109
> cargo run --release -- nbody visualize
110
110
```
111
111
112
112
For more information on demos, try:
113
113
114
- ```
114
+ ``` text
115
115
> cd rayon-demo
116
116
> cargo run --release -- --help
117
117
```
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ extern crate rayon_core;
85
85
extern crate rand;
86
86
#[ cfg( test) ]
87
87
extern crate rand_xorshift;
88
+ #[ cfg( test) ]
89
+ #[ macro_use]
90
+ extern crate doc_comment;
91
+
92
+ #[ cfg( test) ]
93
+ doctest ! ( "../README.md" ) ;
88
94
89
95
#[ macro_use]
90
96
mod delegate;
You can’t perform that action at this time.
0 commit comments