Skip to content

Commit

Permalink
sample code update
Browse files Browse the repository at this point in the history
  • Loading branch information
BHznJNs committed May 21, 2023
1 parent ed7f0e5 commit 162db49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions examples/syntax/operators.calcrs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ out 10! # 0
out 0! # 1

# comparing operator
out 1 > 2 # 0
out 1 < 2 # 1
out 1 >= 2 # 0
out 1 <= 2 # 1
out 1 == 2 # 0
out 1 != 2 # 1
out 1 > 2 # false
out 1 < 2 # true
out 1 >= 2 # false
out 1 <= 2 # true
out 1 == 2 # false
out 1 != 2 # true

# assignment operator
out t = 10 # 10
Expand Down
2 changes: 1 addition & 1 deletion examples/syntax/variable.calcrs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ out d # 1

# invalid left-hand value
10 = 20
# Invalid variable / lazy-expression assignment.
# AssignmentError: invalid left-hand value.
# Error occured at line 15

0 comments on commit 162db49

Please sign in to comment.