From 50d175202c6489627b9b37a7f4e6cb5b9ec457c1 Mon Sep 17 00:00:00 2001 From: Tiago Ferreira Date: Sat, 12 May 2018 12:04:09 +0100 Subject: [PATCH] Structs with Futures are only Encodable --- 3.0/docs/leaf/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.0/docs/leaf/basics.md b/3.0/docs/leaf/basics.md index ca985e71..dfb7ef17 100644 --- a/3.0/docs/leaf/basics.md +++ b/3.0/docs/leaf/basics.md @@ -46,7 +46,7 @@ When working with Future results, simply pass the `Future` in your template cont Streams that carry an encodable type need to be encoded before they're usable within Leaf. ```swift -struct Profile: Codable { +struct Profile: Encodable { var friends: EncodableStream var currentUser: Future }