From ff69b12c2cb7103e1a10dbc96162759ec19fc166 Mon Sep 17 00:00:00 2001 From: Mathieu Gagnon Date: Thu, 11 Feb 2016 18:06:51 -0500 Subject: [PATCH] Fix sample in doc/site/error-handling Add missing constructor. --- doc/site/error-handling.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/site/error-handling.markdown b/doc/site/error-handling.markdown index 87b1fdbe..42e3574e 100644 --- a/doc/site/error-handling.markdown +++ b/doc/site/error-handling.markdown @@ -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