Skip to content

Commit ebcab80

Browse files
committed
Fix doc error
1 parent 10ed96f commit ebcab80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//!
2828
//! Benchmark is written in criterion framework. You can run benchmark by:
2929
//!
30-
//! ```
30+
//! ``` shell
3131
//! cargo bench
3232
//! ```
3333
//!
@@ -113,9 +113,11 @@
113113
//!
114114
//! extern crate crossfire;
115115
//! use crossfire::*;
116+
//! #[macro_use]
117+
//! extern crate tokio;
116118
//!
117119
//! #[tokio::main]
118-
//! async main() {
120+
//! async fn main() {
119121
//! let (tx, rx) = mpsc::bounded_async::<i32>(100);
120122
//! tokio::spawn(async move {
121123
//! for i in 0i32..10000 {

0 commit comments

Comments
 (0)