Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctest fixes #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@
//! feature is not enabled by default because it slightly slows down other
//! non-variable operations.
//! ```
//! # #[cfg(feature="unsafe-vars")]
//! # {
//! use fasteval::Evaler; // use this trait so we can call eval().
//! use fasteval::Compiler; // use this trait so we can call compile().
//! fn main() -> Result<(), fasteval::Error> {
Expand Down Expand Up @@ -327,6 +329,7 @@
//!
//! Ok(())
//! }
//! # }
//! ```
//!
//! ## Let's Develop an Intuition of `fasteval` Internals
Expand Down Expand Up @@ -538,7 +541,7 @@
//!
//! All numeric results can be found in `fasteval/benches/bench.rs`.
//!
//! See the [detailed post about my benchmarking methology]{http://likebike.com/posts/How_To_Write_Fast_Rust_Code.html#how-to-measure}
//! See the [detailed post about my benchmarking methology](http://likebike.com/posts/How_To_Write_Fast_Rust_Code.html#how-to-measure)
//! on my blog.
//!
//! # How is `fasteval` so fast?
Expand Down
3 changes: 3 additions & 0 deletions src/slab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ pub struct Slab {
/// Here is an example of correct and incorrect use of unsafe variable pointers:
///
/// ```
/// # #[cfg(feature="unsafe-vars")]
/// # {
/// use fasteval::Evaler; // use this trait so we can call eval().
/// use fasteval::Compiler; // use this trait so we can call compile().
///
Expand Down Expand Up @@ -208,6 +210,7 @@ pub struct Slab {
///
/// Ok(())
/// }
/// # }
///
/// ```
pub struct ParseSlab {
Expand Down