aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/doc/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docs/doc/README.md')
-rwxr-xr-xdoc/docs/doc/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index 502f7b6..4a408fe 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -1925,22 +1925,22 @@ x * 2
1925</pre> 1925</pre>
1926</YueDisplay> 1926</YueDisplay>
1927 1927
1928If you wish to have further code after your backcalls, you can set them aside with a do statement. 1928If you wish to have further code after your backcalls, you can set them aside with a do statement. And the parentheses can be omitted with non-fat arrow functions.
1929 1929
1930```moonscript 1930```moonscript
1931result, msg = do 1931result, msg = do
1932 (data) <- readAsync "filename.txt" 1932 data <- readAsync "filename.txt"
1933 print data 1933 print data
1934 (info) <- processAsync data 1934 info <- processAsync data
1935 check info 1935 check info
1936print result, msg 1936print result, msg
1937``` 1937```
1938<YueDisplay> 1938<YueDisplay>
1939<pre> 1939<pre>
1940result, msg = do 1940result, msg = do
1941 (data) <- readAsync "filename.txt" 1941 data <- readAsync "filename.txt"
1942 print data 1942 print data
1943 (info) <- processAsync data 1943 info <- processAsync data
1944 check info 1944 check info
1945print result, msg 1945print result, msg
1946</pre> 1946</pre>