From a89680fe48dd1520843d7629e2006f732e313200 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 28 Jul 2023 15:54:12 +0800 Subject: made a little optimization for try-catch syntax. --- doc/docs/doc/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index 92fe435..c237791 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md @@ -971,6 +971,7 @@ thing = {1, 2} print a, b ``` +
 thing = {1, 2}
 
@@ -1295,7 +1296,7 @@ catch err
 
 ## Attributes
 
-Syntax support for Lua 5.4 attributes. But you can use still use `const` declaration and get constant check working when targeting Lua versions below 5.4.
+Syntax support for Lua 5.4 attributes. But you can still use `const` declaration and get constant check working when targeting Lua versions below 5.4.
 
 ```moonscript
 const a = 123
@@ -2374,6 +2375,9 @@ if a in (0, 11)
 
 if a in {1, 3, 5, 7}
   print "checking equality with discrete values"
+
+if a in list
+  print "checking if `a` is in a list"
 ```
 
 
@@ -2390,6 +2394,9 @@ if a in (0, 11)
 
 if a in {1, 3, 5, 7}
   print "checking equality with discrete values"
+
+if a in list
+  print "checking if `a` is in a list"
 
-- cgit v1.2.3-55-g6feb