From 4096432a1d08f9013573420fb5dd8e5deedbbc3b Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Wed, 22 Jul 2020 19:53:49 +0200 Subject: [PATCH] cli: prevent need for unsafe block (#5937) --- vlib/cli/help.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/cli/help.v b/vlib/cli/help.v index 80050689e5..5fd8d46220 100644 --- a/vlib/cli/help.v +++ b/vlib/cli/help.v @@ -144,7 +144,7 @@ fn pretty_description(s string, indent_len int) string { mut i := chars_per_line - 2 mut j := 0 for ; i < line.len; i += chars_per_line - 2 { - for line.str[i] != ` ` { + for line[i] != ` ` { i-- } // indent was already done the first iteration