Skip to content

Commit

Permalink
fix runnable example
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Sep 17, 2022
1 parent 717f927 commit 4dff68a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/applicates/operators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ macro `\`*(call: untyped): untyped =
## supports dot calls, if the given expression is not a dot expression
## or call or command then it will simply apply it with no arguments
runnableExamples:
import ../applicates
const foo = x ==> x + 1
doAssert \foo(1) == 2
doAssert \1.foo == 2
Expand Down

0 comments on commit 4dff68a

Please sign in to comment.