aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/pipe.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-07 23:49:48 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-07 23:55:16 +0800
commit514b9f97febe8920a78d6078b092fe84b859a963 (patch)
tree8c76ba7579f69db7e2c899e4713009b910e0fa89 /spec/inputs/pipe.yue
parenta1d719e3bbfe8cd39c05d2a8f49143b9e814f876 (diff)
downloadyuescript-0.21.0.tar.gz
yuescript-0.21.0.tar.bz2
yuescript-0.21.0.zip
changed the if-assignment syntax to prevent some errors.v0.21.0
Diffstat (limited to '')
-rw-r--r--spec/inputs/pipe.yue2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inputs/pipe.yue b/spec/inputs/pipe.yue
index 02f87a3..b5bae1d 100644
--- a/spec/inputs/pipe.yue
+++ b/spec/inputs/pipe.yue
@@ -11,7 +11,7 @@
11 11
12b = 1 + 2 + (4 |> tostring |> print(1) or 123) 12b = 1 + 2 + (4 |> tostring |> print(1) or 123)
13 13
14if x = 233 |> math.max 998 14if x := 233 |> math.max 998
15 print x 15 print x
16 16
17with b |> create? "new" 17with b |> create? "new"