Fix example of catching and printing an error
The output didn't match the source code. (Tested.)
This commit is contained in:
parent
6b510da872
commit
46867d3540
@ -84,7 +84,7 @@ For example, if you run this program:
|
||||
It prints:
|
||||
|
||||
:::text
|
||||
Num does not implement method 'badMethod'.
|
||||
Caught error: Num does not implement method 'badMethod'.
|
||||
|
||||
The called fiber can no longer be used, but any other fibers can proceed as usual. When a fiber has been aborted because of a runtime error, you can also get the error from the fiber object. Continuing the above example:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user