From b9c56c0f4c4def821374e5186c5f8474e7b807da Mon Sep 17 00:00:00 2001 From: David Ellis Date: Sun, 11 Aug 2024 10:02:48 -0500 Subject: [PATCH] Make error construction consistent with other types (#838) --- src/std/root.ln | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/root.ln b/src/std/root.ln index 67a971c3..a28f6d34 100644 --- a/src/std/root.ln +++ b/src/std/root.ln @@ -150,7 +150,7 @@ export fn store{T}(a: T, b: T) -> T binds storeswap; export fn getOr{T}(v: Maybe{T}, d: T) -> T binds maybe_get_or; export fn getOr{T}(v: Fallible{T}, d: T) -> T binds fallible_get_or; export fn getOr{T, U}(v: U, d: T) -> T = {T}(v).getOr(d); -export fn error{T}(m: string) -> Fallible{T} binds fallible_error; +export fn Error{T}(m: string) -> Fallible{T} binds fallible_error; export fn exists{T}(v: Maybe{T}) -> bool binds maybe_exists; /// Signed Integer-related functions and function bindings