Skip to content

Commit d098847

Browse files
committed
Update comment in QueryBuilder
1 parent abe2b2f commit d098847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-core/src/query_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ where
518518
/// The query is truncated to the initial fragment provided to [`new()`][Self::new] and
519519
/// the bind arguments are reset.
520520
pub fn reset(&mut self) -> &mut Self {
521-
// Someone can hold onto a clone of `self.query` by calling build and not executing the
522-
// query. To avoid panicking here we might as well allocate a new `String`.
521+
// Someone can hold onto a clone of `self.query`, to avoid panicking here we should just
522+
// allocate a new `String`.
523523
let query: &mut String = Arc::make_mut(&mut self.query);
524524
query.truncate(self.init_len);
525525
self.arguments = Some(Default::default());

0 commit comments

Comments
 (0)