fix docs-test

This commit is contained in:
Michael Sippel 2024-03-19 21:50:50 +01:00
parent e811701067
commit 953204ecbc
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -19,7 +19,10 @@
//!# Examples
//!
//! ```
//! use r3vi::buffer::vec::*;
//! use r3vi::{
//! buffer::vec::*,
//! view::sequence::*
//! };
//!
//! let mut buffer = VecBuffer::<i32>::new();
//! buffer.push(3);
@ -27,7 +30,7 @@
//! let projected_port = buffer.get_port()
//! .to_sequence() // make SequenceView from Vec
//! .map(|x| x + 10)
//! .filter(|x| x > 10);
//! .filter(|x| *x > 10);
//!
//! let projected_view = projected_port.get_view();
//!