Skip to content

Commit b3c1779

Browse files
authored
Add extra note for left, right and none functions in pratt.rs example (#939)
* Update pratt.rs example with new infix API usage (Associativity) * Add a note for left/right/none functions
1 parent da31289 commit b3c1779

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pratt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
//! Ok("(((*1) + (-(2!))) - (-(3 ^ 2)))".to_string()),
8888
//! );
8989
//! ```
90+
//!
91+
//! `left`, `right` and `none` are shorthand versions of `Associativity` variants.
9092
9193
use super::*;
9294

0 commit comments

Comments
 (0)