Skip to content

Commit 8dbcda6

Browse files
committed
Fix warning in example
1 parent 00f164f commit 8dbcda6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/time-without-main.ers

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env rust-script
2-
//! This is a regular crate doc comment, but it also contains a partial
3-
//! Cargo manifest. Note the use of a *fenced* code block, and the
4-
//! `cargo` "language".
5-
//!
6-
//! ```cargo
7-
//! [dependencies]
8-
//! time = "0.1.25"
9-
//! ```
2+
/// This is a regular crate doc comment, but it also contains a partial
3+
/// Cargo manifest. Note the use of a *fenced* code block, and the
4+
/// `cargo` "language".
5+
///
6+
/// ```cargo
7+
/// [dependencies]
8+
/// time = "0.1.25"
9+
/// ```
1010
1111
use time::now;
1212

0 commit comments

Comments
 (0)