]> git.lizzy.rs Git - rust.git/commitdiff
Update intrinsics.rs
authorWei-Ming Yang <rick68@users.noreply.github.com>
Thu, 9 Jul 2015 04:09:54 +0000 (12:09 +0800)
committerWei-Ming Yang <rick68@users.noreply.github.com>
Thu, 9 Jul 2015 04:09:54 +0000 (12:09 +0800)
fix typos

src/libcore/intrinsics.rs

index 455928077da462f1d17279d52353e3e617eda326..74901553149abce3083c27d6c77262ad0d093b73 100644 (file)
@@ -586,18 +586,18 @@ pub fn volatile_copy_nonoverlapping_memory<T>(dst: *mut T, src: *const T,
     pub fn overflowing_mul<T>(a: T, b: T) -> T;
 
     /// Performs an unchecked signed division, which results in undefined behavior,
-    /// in cases where y == 0, or x == int::MIN and y == -1
+    /// in cases where y == 0, or x == isize::MIN and y == -1
     pub fn unchecked_sdiv<T>(x: T, y: T) -> T;
     /// Performs an unchecked unsigned division, which results in undefined behavior,
     /// in cases where y == 0
     pub fn unchecked_udiv<T>(x: T, y: T) -> T;
 
     /// Returns the remainder of an unchecked signed division, which results in
-    /// undefined behavior, in cases where y == 0, or x == int::MIN and y == -1
-    pub fn unchecked_urem<T>(x: T, y: T) -> T;
-    /// Returns the remainder of an unchecked signed division, which results in
-    /// undefined behavior, in cases where y == 0
+    /// undefined behavior, in cases where y == 0, or x == isize::MIN and y == -1
     pub fn unchecked_srem<T>(x: T, y: T) -> T;
+    /// Returns the remainder of an unchecked unsigned division, which results in
+    /// undefined behavior, in cases where y == 0
+    pub fn unchecked_urem<T>(x: T, y: T) -> T;
 
     /// Returns the value of the discriminant for the variant in 'v',
     /// cast to a `u64`; if `T` has no discriminant, returns 0.