Skip to content

Commit

Permalink
Update rust_result.R
Browse files Browse the repository at this point in the history
  • Loading branch information
sorhawell committed Feb 2, 2023
1 parent 311439a commit fd3dcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rust_result.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ is_result = function(x) {
}

guard_result = function(x) {
if(!is_result(x)) stopf("internal error: cannot map_err a non result")
if(!is_result(x)) stopf("internal error: expected a Result-type")
}

#' check if x ss a result and an err
Expand Down

0 comments on commit fd3dcb5

Please sign in to comment.