hare

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

commit 6d3ed8e222d44573dcd94ab2c19f577a4353dee8
parent 8f42a75a025b6bf795592fb008f32ad844664f02
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 22 Feb 2024 23:43:57 +0000

time::chrono: rename _lookupzone to lookupzone

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mtime/chrono/chronology.ha | 2+-
Mtime/chrono/timezone.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/time/chrono/chronology.ha b/time/chrono/chronology.ha @@ -56,7 +56,7 @@ export fn mzone(m: *moment) zone = { case let z: *zone => return *z; case null => - const z = _lookupzone(m.loc, *(m: *time::instant)); + const z = lookupzone(m.loc, *(m: *time::instant)); m.zone = z; return *z; }; diff --git a/time/chrono/timezone.ha b/time/chrono/timezone.ha @@ -110,7 +110,7 @@ export fn in(loc: locality, m: moment) (moment | discontinuity) = { }; // Finds and returns a [[moment]]'s currently observed [[zone]]. -fn _lookupzone(loc: locality, inst: time::instant) *zone = { +fn lookupzone(loc: locality, inst: time::instant) *zone = { // TODO: https://todo.sr.ht/~sircmpwn/hare/643 if (len(loc.zones) == 0) { abort("time::chrono: Timezone has no zones");