fix docs-test
This commit is contained in:
parent
e811701067
commit
953204ecbc
1 changed files with 5 additions and 2 deletions
|
@ -19,7 +19,10 @@
|
||||||
//!# Examples
|
//!# Examples
|
||||||
//!
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
//! use r3vi::buffer::vec::*;
|
//! use r3vi::{
|
||||||
|
//! buffer::vec::*,
|
||||||
|
//! view::sequence::*
|
||||||
|
//! };
|
||||||
//!
|
//!
|
||||||
//! let mut buffer = VecBuffer::<i32>::new();
|
//! let mut buffer = VecBuffer::<i32>::new();
|
||||||
//! buffer.push(3);
|
//! buffer.push(3);
|
||||||
|
@ -27,7 +30,7 @@
|
||||||
//! let projected_port = buffer.get_port()
|
//! let projected_port = buffer.get_port()
|
||||||
//! .to_sequence() // make SequenceView from Vec
|
//! .to_sequence() // make SequenceView from Vec
|
||||||
//! .map(|x| x + 10)
|
//! .map(|x| x + 10)
|
||||||
//! .filter(|x| x > 10);
|
//! .filter(|x| *x > 10);
|
||||||
//!
|
//!
|
||||||
//! let projected_view = projected_port.get_view();
|
//! let projected_view = projected_port.get_view();
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue