Skip to content

Commit

Permalink
Merge pull request #359 from hackaugusto/hacka-return-position-impl
Browse files Browse the repository at this point in the history
docs: remove mention to nightly
  • Loading branch information
Marwes authored Dec 13, 2023
2 parents da5b684 + 9bc45f7 commit 6cac1bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
//! If we need a parser that is mutually recursive or if we want to export a reusable parser the
//! [`parser!`] macro can be used. In effect it makes it possible to return a parser without naming
//! the type of the parser (which can be very large due to combine's trait based approach). While
//! it is possible to do avoid naming the type without the macro those solutions require either allocation
//! (`Box<dyn Parser< Input, Output = O, PartialState = P>>`) or nightly rust via `impl Trait`. The
//! macro thus threads the needle and makes it possible to have non-allocating, anonymous parsers
//! on stable rust.
//! it is possible to do avoid naming the type without the macro those solutions require either
//! allocation (`Box<dyn Parser< Input, Output = O, PartialState = P>>`) or via `impl Trait` in the
//! return position. The macro thus threads the needle and makes it possible to have
//! non-allocating, anonymous parsers on stable rust.
//!
//! ```
//! #[macro_use]
Expand Down Expand Up @@ -239,8 +239,8 @@ pub use crate::parser::token::tokens_cmp;
/// The expression which creates the parser should have no side effects as it may be called
/// multiple times even during a single parse attempt.
///
/// NOTE: If you are using rust nightly you can use `impl Trait` instead. See the [json parser][] for
/// an example.
/// NOTE: You can use `impl Trait` in the return position instead. See the [json parser][] for an
/// example.
///
/// [json parser]:https://github.com/Marwes/combine/blob/master/benches/json.rs
///
Expand Down

0 comments on commit 6cac1bd

Please sign in to comment.