diff options
Diffstat (limited to 'spec/inputs/try_catch.yue')
| -rw-r--r-- | spec/inputs/try_catch.yue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/try_catch.yue b/spec/inputs/try_catch.yue index 96a87fc..ccb3f52 100644 --- a/spec/inputs/try_catch.yue +++ b/spec/inputs/try_catch.yue | |||
| @@ -39,14 +39,14 @@ catch err | |||
| 39 | print "OK" | 39 | print "OK" |
| 40 | 40 | ||
| 41 | do | 41 | do |
| 42 | if success, result = try func "abc", 123 | 42 | if success, result := try func "abc", 123 |
| 43 | print result | 43 | print result |
| 44 | 44 | ||
| 45 | success, result = try func "abc", 123 | 45 | success, result = try func "abc", 123 |
| 46 | catch err | 46 | catch err |
| 47 | print err | 47 | print err |
| 48 | 48 | ||
| 49 | print result if success, result = try func "abc", 123 | 49 | print result if success, result := try func "abc", 123 |
| 50 | catch err | 50 | catch err |
| 51 | print err | 51 | print err |
| 52 | 52 | ||
