From 2190afee0ded15a38d85d21b01c10fde52f93429 Mon Sep 17 00:00:00 2001 From: Dan Trenz Date: Sat, 27 Feb 2016 15:20:55 -0500 Subject: [PATCH] Added `try` to throwing expressions in example. Both `Template(named: "template.stencil")` and `Template(named: "template.stencil")` throw but were not preceded by `try`. This usage example, in it's current form, triggers compiler errors. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e906e2d..18cb7eb 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ let context = Context(dictionary: [ ]) do { - let template = Template(named: "template.stencil") - let rendered = template.render(context) + let template = try Template(named: "template.stencil") + let rendered = try template.render(context) print(rendered) } catch { print("Failed to render template \(error)")