diff --git a/src/Query/QueryBuilder.php b/src/Query/QueryBuilder.php
index 1127c6b9e4a..9f4eb5a30a4 100644
--- a/src/Query/QueryBuilder.php
+++ b/src/Query/QueryBuilder.php
@@ -580,8 +580,8 @@ public function addSelect(string $expression, string ...$expressions): self
*
*
* $qb = $conn->createQueryBuilder()
- * ->delete('users', 'u')
- * ->where('u.id = :user_id')
+ * ->delete('users')
+ * ->where('users.id = :user_id')
* ->setParameter(':user_id', 1);
*
*
@@ -606,9 +606,9 @@ public function delete(string $table): self
*
*
* $qb = $conn->createQueryBuilder()
- * ->update('counters', 'c')
- * ->set('c.value', 'c.value + 1')
- * ->where('c.id = ?');
+ * ->update('counters')
+ * ->set('counters.value', 'counters.value + 1')
+ * ->where('counters.id = ?');
*
*
* @param string $table The table whose rows are subject to the update.