[Node] Use Result enum

This commit is contained in:
Kyle Fuller
2014-10-26 17:43:20 +00:00
parent 51410d2ce9
commit fb30915c6a
3 changed files with 71 additions and 39 deletions

View File

@@ -21,8 +21,8 @@ func assertFailure(result:TokenParser.Results, description:String) {
}
class CustomNode : Node {
func render(context:Context) -> (String?, Error?) {
return ("Hello World", nil)
func render(context:Context) -> Result {
return .Success(string:"Hello World")
}
}