Skip to content

Commit 197e237

Browse files
committed
edit code
1 parent 7ce6b08 commit 197e237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/read/retrieve.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fun main() {
2727
// end-find
2828

2929
// start-find-one
30-
val results = collection.find(eq(Restaurant::cuisine.name, "Spanish")).firstOrNull()
30+
val results = collection.find(eq(Restaurant::cuisine.name, "Spanish")).first()
3131
// end-find-one
3232

3333
// start-find-iterate
@@ -38,7 +38,7 @@ fun main() {
3838
// end-find-iterate
3939

4040
// start-find-one-print
41-
val results = collection.find(eq(Restaurant::cuisine.name, "Spanish"))
41+
val results = collection.find(eq(Restaurant::cuisine.name, "Spanish")).first()
4242
println(results)
4343
// end-find-one-print
4444

0 commit comments

Comments
 (0)