Merge pull request #323 from tiferrei/patch-1

Structs with Futures are only Encodable
This commit is contained in:
Tim 2018-05-12 12:05:51 +01:00 committed by GitHub
commit beae3cce94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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. Streams that carry an encodable type need to be encoded before they're usable within Leaf.
```swift ```swift
struct Profile: Codable { struct Profile: Encodable {
var friends: EncodableStream var friends: EncodableStream
var currentUser: Future<User> var currentUser: Future<User>
} }