diff options
author | Baibhav Vatsa <baibhavvatsa@gmail.com> | 2019-10-11 13:15:39 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-11 20:34:51 +0200 |
commit | 0e75af74db30259ec355a7b79a1e257d5fe00eef (patch) | |
tree | fc59de45e93efc95ca750eaa82d6c5b79b34c719 /.github/calibre | |
parent | 5f1aafafb40299bb4c8aebf71e05843431eb84c5 (diff) |
tpl: Last now accepts 0 as limit
Modified the if conditional because of which last threw an error if 0 was passed as limit. The function now returns an empty slice if it is called with 0 as limit. The behavior of first and last is now the same when 0 is passed as limit. Also added tests to test the new behavior.
Fixes #6419
Diffstat (limited to '.github/calibre')
0 files changed, 0 insertions, 0 deletions