From f218087a9186b86d73d06776035339322595fa29 Mon Sep 17 00:00:00 2001 From: Jakob K Date: Mon, 28 Jun 2021 13:10:22 +0200 Subject: [PATCH] Improve simpleSuggests code example --- guide/docs/commands/brigardier.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/docs/commands/brigardier.md b/guide/docs/commands/brigardier.md index a3854def..babc0e57 100644 --- a/guide/docs/commands/brigardier.md +++ b/guide/docs/commands/brigardier.md @@ -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`