From 8be30beee9ac1bf5e02b246d40861684bd22b579 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Fri, 13 Jun 2014 10:54:37 +0800 Subject: [PATCH] Fix typo in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d29a5edc..5262b057 100644 --- a/README.md +++ b/README.md @@ -865,10 +865,10 @@ db.Debug().Where("name = ?", "jinzhu").First(&User{}) Row & Rows is not chainable, it works just like `QueryRow` and `Query`. ```go -row := db.Table("users").Where("name = ?", "jinzhu").select("name, age").Row() // (*sql.Row) +row := db.Table("users").Where("name = ?", "jinzhu").Select("name, age").Row() // (*sql.Row) row.Scan(&name, &age) -rows, err := db.Model(User{}).Where("name = ?", "jinzhu").select("name, age, email").Rows() // (*sql.Rows, error) +rows, err := db.Model(User{}).Where("name = ?", "jinzhu").Select("name, age, email").Rows() // (*sql.Rows, error) defer rows.Close() for rows.Next() { ...