From b05bb47a377126f725d64bd5c703d1b7ce22e003 Mon Sep 17 00:00:00 2001 From: Johannes Lund Date: Sun, 16 Aug 2015 14:25:12 +0200 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b390a2..be4c8d7 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,15 @@ public func parse(json: AnyObject, path: [String], decode: (AnyObject throws which call the `parse`-function. ```swift public func => (lhs: AnyObject, rhs: String) throws -> T -public func => (lhs: AnyObject, rhs: String) -> T? +public func => (lhs: AnyObject, rhs: String) throws -> T? public func => (lhs: AnyObject, rhs: String) throws -> [T] -public func => (lhs: AnyObject, rhs: String) -> [T]? +public func => (lhs: AnyObject, rhs: String) throws -> [T]? public func => (lhs: AnyObject, rhs: String) throws -> [T?] -public func =>? (lhs: AnyObject, rhs: String) throws -> [T] public func => (lhs: AnyObject, rhs: String) throws -> NSDictionary +public func =>? (lhs: AnyObject, rhs: String) throws -> [T] +public func =>? (lhs: AnyObject, rhs: String) -> T? + // Enables parsing nested objects e.g json => "a" => "b" // Uses \u{0} as a separator public func => (lhs: String, rhs: String) -> String