Improve simpleSuggests code example

This commit is contained in:
Jakob K
2021-06-28 13:10:22 +02:00
parent 5f957594e7
commit f218087a91

View File

@@ -98,7 +98,7 @@ You can provide argument suggestions using the `simpleSuggests` function. It is
`suggests` function.
```kotlin
simpleSuggests { Material.values().map { it.name } }
simpleSuggests { Material.values().toList() }
```
It is okay to do heavy operations inside this function. Suggestions are asynchronous. The body of the `simpleSuggests`