Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nsclass committed Feb 8, 2023
1 parent e4cd790 commit 5394ec8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# Rust Simple Text Calculator #


## Examples

```rust
let input = "1 + 2 * (3 + 4) / 2"; // expected 1234+*2/+
let (result, _trace_details) = calculate_str(input, true).unwrap();
assert_eq!(result, 8.);
```

0 comments on commit 5394ec8

Please sign in to comment.