diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-04-13 23:31:47 +1000 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2013-04-14 01:14:02 +1000 |
| commit | 3ffd735b45c821441c7a73fa5beace04b67b7ba1 (patch) | |
| tree | 54da2f1136b2493a14e890de93f6183623c49806 | |
| parent | e2d5cebe32c0b1fae7f612a16a9e7b62ed740660 (diff) | |
| download | rust-3ffd735b45c821441c7a73fa5beace04b67b7ba1.tar.gz rust-3ffd735b45c821441c7a73fa5beace04b67b7ba1.zip | |
Clarify purpose of NumCast trait
| -rw-r--r-- | src/libcore/num/num.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/num.rs b/src/libcore/num/num.rs index daa36f9dc32..9a942ec0a52 100644 --- a/src/libcore/num/num.rs +++ b/src/libcore/num/num.rs @@ -49,7 +49,7 @@ pub enum RoundMode { } /** - * Cast a number the the enclosing type + * Cast from one machine scalar to another * * # Example * @@ -64,7 +64,7 @@ pub fn cast<T:NumCast,U:NumCast>(n: T) -> U { } /** - * An interface for generic numeric type casts + * An interface for casting between machine scalars */ pub trait NumCast { fn from<T:NumCast>(n: T) -> Self; |
