SetAppend -> SetMore

This commit is contained in:
petersunbag
2019-08-19 18:08:43 +08:00
parent 918aaddf83
commit 00dbc17646
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ func (ub *UpdateBuilder) Set(assignment ...string) *UpdateBuilder {
return ub
}
// SetAppend appends the assignements in SET.
func (ub *UpdateBuilder) SetAppend(assignment ...string) *UpdateBuilder {
// SetMore appends the assignements in SET.
func (ub *UpdateBuilder) SetMore(assignment ...string) *UpdateBuilder {
ub.assignments = append(ub.assignments, assignment...)
return ub
}
+1 -1
View File
@@ -64,7 +64,7 @@ func TestUpdateBuilder_SetAppend(t *testing.T) {
ub.Assign("a", 1),
ub.Assign("b", 2),
)
ub.SetAppend(
ub.SetMore(
ub.Assign("c", 3),
ub.Incr("d"),
)