Skip to content

Commit

Permalink
Make error construction consistent with other types (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis authored Aug 11, 2024
1 parent 1bf44e4 commit b9c56c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/root.ln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9c56c0

Please sign in to comment.