File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -480,6 +480,9 @@ impl Duration {
480
480
481
481
/// Creates a new `Duration` from the specified number of seconds.
482
482
///
483
+ /// # Panics
484
+ /// This constructor will panic if `secs` is not finite, negative or overflows `Duration`.
485
+ ///
483
486
/// # Examples
484
487
/// ```
485
488
/// #![feature(duration_float)]
@@ -510,6 +513,9 @@ impl Duration {
510
513
511
514
/// Multiply `Duration` by `f64`.
512
515
///
516
+ /// # Panics
517
+ /// This method will panic if result is not finite, negative or overflows `Duration`.
518
+ ///
513
519
/// # Examples
514
520
/// ```
515
521
/// #![feature(duration_float)]
@@ -527,6 +533,9 @@ impl Duration {
527
533
528
534
/// Divide `Duration` by `f64`.
529
535
///
536
+ /// # Panics
537
+ /// This method will panic if result is not finite, negative or overflows `Duration`.
538
+ ///
530
539
/// # Examples
531
540
/// ```
532
541
/// #![feature(duration_float)]
You can’t perform that action at this time.
0 commit comments