From 514b9f97febe8920a78d6078b092fe84b859a963 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 7 Dec 2023 23:49:48 +0800 Subject: changed the if-assignment syntax to prevent some errors. --- spec/inputs/pipe.yue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/inputs/pipe.yue') 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 @@ b = 1 + 2 + (4 |> tostring |> print(1) or 123) -if x = 233 |> math.max 998 +if x := 233 |> math.max 998 print x with b |> create? "new" -- cgit v1.2.3-55-g6feb