Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Apr 30, 2024
1 parent a24944c commit 994b454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class ResultImpl<T, E> {
* ```
*/
unwrap(): T {
return this.expect(`called \`unwrap()\` on \`Some\``);
return this.expect(`called \`unwrap()\` on \`Err\``);
}

/**
Expand Down

0 comments on commit 994b454

Please sign in to comment.