Skip to content

Commit 569fd86

Browse files
committed
attempt to appease vint
1 parent 3f92419 commit 569fd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/grains/.meta/example.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" add two strings as numbers from right to left, as if by hand
22
function! StringAdd(a, b) abort
33
" zero-left-pad so the numbers are the same length
4-
let len = [a:a->strlen(), a:b->strlen()]->max()
4+
let len = max([strlen(a:a), strlen(a:b)])
55
let a = printf('%0*s', len, a:a)
66
let b = printf('%0*s', len, a:b)
77
let result = ""

0 commit comments

Comments
 (0)