From 78ca9d3c4bef2a9ec20e9228da6da9ebfee6442f Mon Sep 17 00:00:00 2001 From: Bill Hilbert Date: Fri, 3 Sep 2021 17:39:02 -0400 Subject: [PATCH] fix easir easier typo --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 0c247b6b9..fe943c533 100644 --- a/main.go +++ b/main.go @@ -83,9 +83,9 @@ func Open(dialect string, args ...interface{}) (db *DB, err error) { } db = &DB{ - db: dbSQL, - logger: defaultLogger, - + db: dbSQL, + logger: defaultLogger, + // Create a clone of the default logger to avoid mutating a shared object when // multiple gorm connections are created simultaneously. callbacks: DefaultCallback.clone(defaultLogger), @@ -745,7 +745,7 @@ func (s *DB) RemoveForeignKey(field string, dest string) *DB { return scope.db } -// Association start `Association Mode` to handler relations things easir in that mode, refer: https://jinzhu.github.io/gorm/associations.html#association-mode +// Association start `Association Mode` to handler relations things easier in that mode, refer: https://jinzhu.github.io/gorm/associations.html#association-mode func (s *DB) Association(column string) *Association { var err error var scope = s.Set("gorm:association:source", s.Value).NewScope(s.Value)