Skip to content

Commit 2ee239a

Browse files
committed
Update main.go
1 parent d926a05 commit 2ee239a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (s *DB) FirstOrCreate(out interface{}, where ...interface{}) *DB {
433433
return c
434434
}
435435

436-
// Update update attributes with callbacks. refer: https://jinzhu.github.io/gorm/crud.html#update
436+
// Update update attributes with callbacks, refer: https://jinzhu.github.io/gorm/crud.html#update
437437
// WARNING when update with struct, GORM will not update fields that with zero value
438438
func (s *DB) Update(attrs ...interface{}) *DB {
439439
return s.Updates(toSearchableMap(attrs...), true)

0 commit comments

Comments
 (0)