Update Kotlin example based on feedback from @lnhrdt

See gh-24398
This commit is contained in:
Sam Brannen 2020-03-18 15:34:27 +01:00
parent d4b2860cc9
commit edb5e73d48
1 changed files with 1 additions and 1 deletions

View File

@ -2794,7 +2794,7 @@ For example, it may be better to write the preceding code snippet as follows:
.Kotlin
----
val actorMapper = RowMapper<Actor> { rs: ResultSet, rowNum: Int ->
return Actor(rs.getString("first_name"), rs.getString("last_name"))
Actor(rs.getString("first_name"), rs.getString("last_name"))
}
fun findAllActors(): List<Actor> {