Skip to content

Commit

Permalink
fix doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Oct 21, 2023
1 parent f1494e1 commit 0ecd527
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
44 changes: 22 additions & 22 deletions doc/docs/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,47 +416,47 @@ Note the evaluation behavior of chained comparisons:

```moonscript
v = (x)->
print x
x
print x
x
print v(1) < v(2) <= v(3)
--[[
output:
2
1
3
true
output:
2
1
3
true
]]
print v(1) > v(2) <= v(3)
--[[
output:
2
1
false
output:
2
1
false
]]
```
<YueDisplay>
<pre>
v = (x)->
print x
x
print x
x

print v(1) < v(2) <= v(3)
--[[
output:
2
1
3
true
output:
2
1
3
true
]]

print v(1) > v(2) <= v(3)
--[[
output:
2
1
false
output:
2
1
false
]]
</pre>
</YueDisplay>
Expand Down
44 changes: 22 additions & 22 deletions doc/docs/zh/doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,47 +413,47 @@ print 1 <= a <= 10

```moonscript
v = (x)->
print x
x
print x
x
print v(1) < v(2) <= v(3)
--[[
输出:
2
1
3
true
输出:
2
1
3
true
]]
print v(1) > v(2) <= v(3)
--[[
输出:
2
1
false
输出:
2
1
false
]]
```
<YueDisplay>
<pre>
v = (x)->
print x
x
print x
x

print v(1) < v(2) <= v(3)
--[[
输出:
2
1
3
true
输出:
2
1
3
true
]]

print v(1) > v(2) <= v(3)
--[[
输出:
2
1
false
输出:
2
1
false
]]
</pre>
</YueDisplay>
Expand Down

0 comments on commit 0ecd527

Please sign in to comment.