diff options
Diffstat (limited to 'doc/docs/doc/README.md')
| -rwxr-xr-x | doc/docs/doc/README.md | 10 |
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 | ||
| 1928 | If you wish to have further code after your backcalls, you can set them aside with a do statement. | 1928 | If 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 |
| 1931 | result, msg = do | 1931 | result, 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 |
| 1936 | print result, msg | 1936 | print result, msg |
| 1937 | ``` | 1937 | ``` |
| 1938 | <YueDisplay> | 1938 | <YueDisplay> |
| 1939 | <pre> | 1939 | <pre> |
| 1940 | result, msg = do | 1940 | result, 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 |
| 1945 | print result, msg | 1945 | print result, msg |
| 1946 | </pre> | 1946 | </pre> |
