Skip to content

Commit

Permalink
Merge pull request #604 from HigherOrderCO/with-fun-undefer-docs
Browse files Browse the repository at this point in the history
Fix the monadic example using `with` for fun syntax
  • Loading branch information
imaqtkatt authored Jun 24, 2024
2 parents 4b13120 + 71b87c4 commit 70944db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ match x {
### With block

```rust
Result/bind (Result/Ok val) nxt = (nxt val)
Result/bind (Result/Ok val) nxt = ((undefer nxt) val)
Result/bind err _nxt = err

div a b = switch b {
Expand Down

0 comments on commit 70944db

Please sign in to comment.