Fix sample in doc/site/error-handling

Add missing constructor.
This commit is contained in:
Mathieu Gagnon
2016-02-11 18:06:51 -05:00
parent a2e03279e2
commit ff69b12c2c

View File

@ -49,7 +49,9 @@ not found" one. If you call a method on an object and its class (and all of its
superclasses) don't define that method, there's nothing Wren can do:
:::wren
class Foo {}
class Foo {
construct new() {}
}
var foo = Foo.new()
foo.someRandomMethod