File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ pub trait Int
284
284
/// ```
285
285
fn checked_add ( self , other : Self ) -> Option < Self > ;
286
286
287
- /// Checked integer subtraction. Computes `self + other`, returning `None`
287
+ /// Checked integer subtraction. Computes `self - other`, returning `None`
288
288
/// if underflow occurred.
289
289
///
290
290
/// # Example
@@ -297,7 +297,7 @@ pub trait Int
297
297
/// ```
298
298
fn checked_sub ( self , other : Self ) -> Option < Self > ;
299
299
300
- /// Checked integer multiplication. Computes `self + other`, returning
300
+ /// Checked integer multiplication. Computes `self * other`, returning
301
301
/// `None` if underflow or overflow occurred.
302
302
///
303
303
/// # Example
@@ -310,8 +310,8 @@ pub trait Int
310
310
/// ```
311
311
fn checked_mul ( self , other : Self ) -> Option < Self > ;
312
312
313
- /// Checked integer division. Computes `self + other` returning `None` if
314
- /// `self == 0` or the operation results in underflow or overflow.
313
+ /// Checked integer division. Computes `self / other`, returning `None` if
314
+ /// `other == 0` or the operation results in underflow or overflow.
315
315
///
316
316
/// # Example
317
317
///
You can’t perform that action at this time.
0 commit comments