Skip to content

Commit

Permalink
Fix error variant name
Browse files Browse the repository at this point in the history
  • Loading branch information
elaye committed Mar 21, 2020
1 parent 0205195 commit 7983840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_distr/src/normal_inverse_gaussian.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ where StandardNormal: Distribution<N>
}

if !(beta.abs() < alpha) {
return Err(Error::AbsoluteBetaLessThanAlpha);
return Err(Error::AbsoluteBetaNotLessThanAlpha);
}

let gamma = (alpha * alpha - beta * beta).sqrt();
Expand Down

0 comments on commit 7983840

Please sign in to comment.