Minor fix to a comment

pull/53/head
Vinícius Garcia 2024-10-28 22:44:59 -03:00
parent bb48d77d81
commit 81026c8aac
1 changed files with 6 additions and 7 deletions

13
ksql.go
View File

@ -574,17 +574,16 @@ func assertStructPtr(t reflect.Type) error {
// //
// The examples below should work for both types of tables: // The examples below should work for both types of tables:
// //
// err := c.Delete(ctx, UsersTable, user) // err := c.Delete(ctx, UsersTable, user)
// //
// err := c.Delete(ctx, UserPostsTable, map[string]interface{}{ // err := c.Delete(ctx, UserPostsTable, map[string]interface{}{
// "user_id": user.ID, // "user_id": user.ID,
// "post_id": post.ID, // "post_id": post.ID,
// }) // })
// //
// The example below is shorter but will only work for tables with a single primary key: // The example below is shorter but will only work for tables with a single primary key:
// //
// err := c.Delete(ctx, UsersTable, user.ID) // err := c.Delete(ctx, UsersTable, user.ID)
//
func (c DB) Delete( func (c DB) Delete(
ctx context.Context, ctx context.Context,
table Table, table Table,