Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 524efe1

Browse files
authored
Fixed a few typos for the DELETE implementation (#830)
Fixed a few typos for the DELETE implementation
2 parents 4e1dc14 + 3ecd1a4 commit 524efe1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/core.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ type Inserter interface {
205205
Insert(*Context, Row) error
206206
}
207207

208-
// Deleter allow rows to be deleted from them.
208+
// Deleter allow rows to be deleted from tables.
209209
type Deleter interface {
210210
// Delete the given row. Returns ErrDeleteRowNotFound if the row was not found.
211211
Delete(*Context, Row) error

sql/plan/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func getDeletableTable(t sql.Table) (sql.Deleter, error) {
6464
}
6565
}
6666

67-
// Execute inserts the rows in the database.
67+
// Execute deletes the rows in the database.
6868
func (p *DeleteFrom) Execute(ctx *sql.Context) (int, error) {
6969
deletable, err := getDeletable(p.Node)
7070
if err != nil {

0 commit comments

Comments
 (0)