Skip to content

Commit edb5e73

Browse files
committed
Update Kotlin example based on feedback from @lnhrdt
See gh-24398
1 parent d4b2860 commit edb5e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/data-access.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ For example, it may be better to write the preceding code snippet as follows:
27942794
.Kotlin
27952795
----
27962796
val actorMapper = RowMapper<Actor> { rs: ResultSet, rowNum: Int ->
2797-
return Actor(rs.getString("first_name"), rs.getString("last_name"))
2797+
Actor(rs.getString("first_name"), rs.getString("last_name"))
27982798
}
27992799
28002800
fun findAllActors(): List<Actor> {

0 commit comments

Comments
 (0)