From 569fd86d35feacc449507f958b336b8ad0138b47 Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Thu, 7 Nov 2024 22:08:26 -0500 Subject: [PATCH] attempt to appease vint --- exercises/practice/grains/.meta/example.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/grains/.meta/example.vim b/exercises/practice/grains/.meta/example.vim index a6b21b4..3dcffba 100644 --- a/exercises/practice/grains/.meta/example.vim +++ b/exercises/practice/grains/.meta/example.vim @@ -1,7 +1,7 @@ " add two strings as numbers from right to left, as if by hand function! StringAdd(a, b) abort " zero-left-pad so the numbers are the same length - let len = [a:a->strlen(), a:b->strlen()]->max() + let len = max([strlen(a:a), strlen(a:b)]) let a = printf('%0*s', len, a:a) let b = printf('%0*s', len, a:b) let result = ""