Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -881,4 +881,4 @@
"typing/weak",
"used_for/scripts"
]
}
}
2 changes: 1 addition & 1 deletion exercises/practice/camicia/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"blurb": "Simulate the card game and determine whether the match ends or enters an infinite loop.",
"source": "Beggar-My-Neighbour",
"source_url": "https://www.richardpmann.com/beggar-my-neighbour-records.html"
}
}
1 change: 0 additions & 1 deletion exercises/practice/circular-buffer/circular_buffer.vader
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ Execute (initial clear does not affect wrapping around):
AssertEqual g:buffer.Read(), 4
AssertThrows call g:buffer.Read()
AssertEqual "Empty buffer", g:vader_exception

Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ The clauses for each are checked sequentially until one produces a truthy value.
Each clause checks if a year is evenly divisible by another number by checking the remainder of their division.
If a year is evenly divisible by 400, the first clause produces a truthy value so the command within the if branch is executed, returning 1.
If it's not evenly divisible, Vim proceeds to the next clause until one produces a truthy value or the else statement is hit.
In that case, 0 is returned because the year failed all three checks.
In that case, 0 is returned because the year failed all three checks.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ function! LeapYear(year) abort
return 0
elseif a:year % 4 == 0
return 1
# cut for snippet brevity
# cut for snippet brevity
2 changes: 1 addition & 1 deletion exercises/practice/perfect-numbers/.meta/example.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function! Classify(number) abort
else
return 'abundant'
endif
endfunction
endfunction
2 changes: 1 addition & 1 deletion exercises/practice/word-count/.meta/example.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ function! WordCount(phrase)
endfor

return words
endfunction
endfunction