hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 48e3e841942836a7785987c30fc26b5e44e53654
parent b57de9e4a5519acf30834ec6b2e54f4784640074
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 21 Nov 2021 12:00:31 +0100

cmd/hare: use const where appropriate

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/hare/release.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/hare/release.ha b/cmd/hare/release.ha @@ -26,7 +26,7 @@ fn parseversion(in: str) (modversion | badversion) = { return badversion; }; let major = 0u, minor = 0u, patch = 0u; - let ptrs = [&major, &minor, &patch]; + const ptrs = [&major, &minor, &patch]; for (let i = 0z; i < len(items); i += 1) { *ptrs[i] = match (strconv::stou(items[i])) { case u: uint =>