Skip to content

Commit e10806d

Browse files
author
Yin Hang
authored
Fix wrong javadoc (#1227)
1 parent 39f9ced commit e10806d

File tree

1 file changed

+1
-1
lines changed
  • vertx-sql-client/src/main/java/io/vertx/sqlclient

1 file changed

+1
-1
lines changed

vertx-sql-client/src/main/java/io/vertx/sqlclient/Pool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ default <T> void withConnection(Function<SqlConnection, Future<@Nullable T>> fun
183183
}
184184

185185
/**
186-
* Like {@link #withTransaction(Function, Handler)} but returns a {@code Future} of the asynchronous result
186+
* Like {@link #withConnection(Function, Handler)} but returns a {@code Future} of the asynchronous result
187187
*/
188188
default <T> Future<@Nullable T> withConnection(Function<SqlConnection, Future<@Nullable T>> function) {
189189
return getConnection().flatMap(conn -> function.apply(conn).onComplete(ar -> conn.close()));

0 commit comments

Comments
 (0)