File tree 4 files changed +3
-14
lines changed
science/mathematics/linear_algebra
4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,7 @@ Mark examples that depend on external systems with `no_run` or remove them
271
271
if they are not required for the example. Avoid inline comments, preferring
272
272
explanation in the description.
273
273
274
- > ``` rust
275
- > extern crate rand;
276
- >
274
+ > ``` rust,edition2018
277
275
> use rand::distributions::{Normal, Distribution};
278
276
>
279
277
> fn main() {
Original file line number Diff line number Diff line change 1
- extern crate skeptic;
2
- extern crate walkdir;
3
-
4
1
use walkdir:: WalkDir ;
5
2
6
3
const REMOVED_TESTS : & [ & str ] = & [
Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ to prevent the entire program from blocking on the worker for-loops. You can
24
24
think of the calls to ` drop ` as signaling that no more messages will be sent.
25
25
26
26
27
- ``` rust
28
- extern crate crossbeam;
29
- extern crate crossbeam_channel;
30
-
27
+ ``` rust,edition2018
31
28
use std::thread;
32
29
use std::time::Duration;
33
30
use crossbeam_channel::bounded;
Original file line number Diff line number Diff line change @@ -6,10 +6,7 @@ by [`serde_json::to_string`] and [`serde_json::from_str`] performs deserializati
6
6
7
7
Note that serialization followed by deserialization gives back the original matrix.
8
8
9
- ``` rust
10
- extern crate nalgebra;
11
- extern crate serde_json;
12
-
9
+ ``` rust,edition2018
13
10
use nalgebra::DMatrix;
14
11
15
12
fn main() -> Result<(), std::io::Error> {
You can’t perform that action at this time.
0 commit comments