From a1d9bf297fb7fdafb88faa59a3c24ed4d189cbff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 21 May 2016 08:28:10 +0200 Subject: [PATCH] RowAdapter documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9b3710e4..18010706b 100644 --- a/README.md +++ b/README.md @@ -1279,7 +1279,7 @@ class Person : RowConvertible { class Book : RowConvertible { var id: Int64? var title: String - var person: Author? + var author: Person? init(_ row: Row) { id = row.value(named: "id") @@ -1287,7 +1287,7 @@ class Book : RowConvertible { // Consume the subrow: if let authorRow = row.subrow(named: "author") { - person = Person(row: authorRow) + author = Person(row: authorRow) } } }