File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ pub enum PertError {
51
51
impl fmt:: Display for PertError {
52
52
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
53
53
f. write_str ( match self {
54
- PertError :: RangeTooSmall => "min..= max is not proper range in PERT distribution" ,
55
- PertError :: ModeRange => "mode is outside min..= max in PERT distribution" ,
54
+ PertError :: RangeTooSmall => "requirement min < max is not met in PERT distribution" ,
55
+ PertError :: ModeRange => "mode is outside [ min, max] in PERT distribution" ,
56
56
PertError :: ShapeTooSmall => "shape < 0 or is NaN in PERT distribution" ,
57
57
} )
58
58
}
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ impl fmt::Display for TriangularError {
51
51
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
52
52
f. write_str ( match self {
53
53
TriangularError :: RangeTooSmall => {
54
- "min..= max is not proper range in triangular distribution"
54
+ "requirement min <= max is not met in triangular distribution"
55
55
}
56
- TriangularError :: ModeRange => "mode is outside min..= max in triangular distribution" ,
56
+ TriangularError :: ModeRange => "mode is outside [ min, max] in triangular distribution" ,
57
57
} )
58
58
}
59
59
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub enum BernoulliError {
72
72
impl fmt:: Display for BernoulliError {
73
73
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
74
74
f. write_str ( match self {
75
- BernoulliError :: InvalidProbability => "p is outside 0..=1 in Bernoulli distribution" ,
75
+ BernoulliError :: InvalidProbability => "p is outside [0, 1] in Bernoulli distribution" ,
76
76
} )
77
77
}
78
78
}
You can’t perform that action at this time.
0 commit comments