From 7bb90371e911d5bedd1e6700eef76a2c9d85a0b2 Mon Sep 17 00:00:00 2001 From: Eric Chen Date: Tue, 26 Jan 2016 03:14:05 -0800 Subject: [PATCH] Fix README typo on Related usage. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa710802..11ccfeb6 100644 --- a/README.md +++ b/README.md @@ -570,7 +570,7 @@ db.Model(&user).Related(&card, "CreditCard") //// SELECT * FROM credit_cards WHERE user_id = 123; // 123 is user's primary key // CreditCard is user's field name, it means get user's CreditCard relations and fill it into variable card // If the field name is same as the variable's type name, like above example, it could be omitted, like: -db.Model(&user).Related(&creditCard, "CreditCard") +db.Model(&user).Related(&card) ``` ### Belongs To