Skip to content

Commit 3ffd735

Browse files
committed
Clarify purpose of NumCast trait
1 parent e2d5ceb commit 3ffd735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/num.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub enum RoundMode {
4949
}
5050

5151
/**
52-
* Cast a number the the enclosing type
52+
* Cast from one machine scalar to another
5353
*
5454
* # Example
5555
*
@@ -64,7 +64,7 @@ pub fn cast<T:NumCast,U:NumCast>(n: T) -> U {
6464
}
6565

6666
/**
67-
* An interface for generic numeric type casts
67+
* An interface for casting between machine scalars
6868
*/
6969
pub trait NumCast {
7070
fn from<T:NumCast>(n: T) -> Self;

0 commit comments

Comments
 (0)