Skip to content

Commit 553f0c6

Browse files
committed
refactor: update order function comments for clarity
1 parent ed88c5d commit 553f0c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chainable_api.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ func (db *DB) Having(query interface{}, args ...interface{}) (tx *DB) {
306306
//
307307
// db.Order("name DESC")
308308
// db.Order(clause.OrderByColumn{Column: clause.Column{Name: "name"}, Desc: true})
309-
// db.Order(clause.OrderBy{Columns: []clause.OrderByColumn{
310-
// {Column: clause.Column{Name: "name"}, Desc: true},
311-
// {Column: clause.Column{Name: "age"}, Desc: true},
309+
// db.Order(clause.OrderBy{Exprs: []clause.Expression{
310+
// clause.OrderByColumn{Column: clause.Column{Name: "name"}, Desc: true},
311+
// clause.OrderByColumn{Column: clause.Column{Name: "age"}, Desc: true},
312312
// }})
313313
func (db *DB) Order(value interface{}) (tx *DB) {
314314
tx = db.getInstance()

0 commit comments

Comments
 (0)