Skip to content

Commit e5c5ef9

Browse files
committed
use queryLazily() in javadoc
1 parent a3b9e22 commit e5c5ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mug-guava/src/main/java/com/google/mu/safesql/SafeSql.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,11 @@ public <T> List<T> query(
734734
*
735735
* <p>The returned {@code Stream} includes results transformed by {@code rowMapper}.
736736
* The caller must close it using try-with-resources idiom, which will close the associated
737-
* statement and {@link ResultSet}.
737+
* {@link Statement} and {@link ResultSet}.
738738
*
739739
* <p>For example: <pre>{@code
740740
* SafeSql sql = SafeSql.of("SELECT name FROM Users WHERE name LIKE '%{name}%'", name);
741-
* try (Stream<String> names = sql.query(connection, row -> row.getLong("id"))) {
741+
* try (Stream<String> names = sql.queryLazily(connection, row -> row.getLong("id"))) {
742742
* return names.findFirst();
743743
* }
744744
* }</pre>

0 commit comments

Comments
 (0)