@@ -95,7 +95,7 @@ impl Gamma {
9595 /// Construct an object representing the `Gamma(shape, scale)`
9696 /// distribution.
9797 ///
98- /// Fails if `shape <= 0` or `scale <= 0`.
98+ /// Panics if `shape <= 0` or `scale <= 0`.
9999 pub fn new ( shape : f64 , scale : f64 ) -> Gamma {
100100 assert ! ( shape > 0.0 , "Gamma::new called with shape <= 0" ) ;
101101 assert ! ( scale > 0.0 , "Gamma::new called with scale <= 0" ) ;
@@ -208,7 +208,7 @@ enum ChiSquaredRepr {
208208
209209impl ChiSquared {
210210 /// Create a new chi-squared distribution with degrees-of-freedom
211- /// `k`. Fails if `k < 0`.
211+ /// `k`. Panics if `k < 0`.
212212 pub fn new ( k : f64 ) -> ChiSquared {
213213 let repr = if k == 1.0 {
214214 DoFExactlyOne
@@ -261,7 +261,7 @@ pub struct FisherF {
261261
262262impl FisherF {
263263 /// Create a new `FisherF` distribution, with the given
264- /// parameter. Fails if either `m` or `n` are not positive.
264+ /// parameter. Panics if either `m` or `n` are not positive.
265265 pub fn new ( m : f64 , n : f64 ) -> FisherF {
266266 assert ! ( m > 0.0 , "FisherF::new called with `m < 0`" ) ;
267267 assert ! ( n > 0.0 , "FisherF::new called with `n < 0`" ) ;
@@ -302,7 +302,7 @@ pub struct StudentT {
302302
303303impl StudentT {
304304 /// Create a new Student t distribution with `n` degrees of
305- /// freedom. Fails if `n <= 0`.
305+ /// freedom. Panics if `n <= 0`.
306306 pub fn new ( n : f64 ) -> StudentT {
307307 assert ! ( n > 0.0 , "StudentT::new called with `n <= 0`" ) ;
308308 StudentT {
0 commit comments