Skip to content

Commit a85f831

Browse files
committed
---
yaml --- r: 163713 b: refs/heads/master c: 2d90b91 h: refs/heads/master i: 163711: baedd05 v: v3
1 parent bc69be1 commit a85f831

File tree

3 files changed

+22
-33
lines changed

3 files changed

+22
-33
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 124e1e18cc4f327730a978a7a8c1e7876bb63c6e
2+
refs/heads/master: 2d90b91b5d2d18cd433a9e6f1944b685f8b4bb04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42

trunk/src/librustc_trans/trans/value.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ pub struct Use(UseRef);
130130

131131
impl Copy for Use {}
132132

133-
/**
134-
* Wrapper for LLVM UseRef
135-
*/
136133
impl Use {
137134
pub fn get(&self) -> UseRef {
138135
let Use(v) = *self; v

trunk/src/libstd/num/strconv.rs

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,25 @@ pub enum SignFormat {
7474

7575
impl Copy for SignFormat {}
7676

77-
/**
78-
* Converts an integral number to its string representation as a byte vector.
79-
* This is meant to be a common base implementation for all integral string
80-
* conversion functions like `to_string()` or `to_str_radix()`.
81-
*
82-
* # Arguments
83-
* - `num` - The number to convert. Accepts any number that
84-
* implements the numeric traits.
85-
* - `radix` - Base to use. Accepts only the values 2-36.
86-
* - `sign` - How to emit the sign. Options are:
87-
* - `SignNone`: No sign at all. Basically emits `abs(num)`.
88-
* - `SignNeg`: Only `-` on negative values.
89-
* - `SignAll`: Both `+` on positive, and `-` on negative numbers.
90-
* - `f` - a callback which will be invoked for each ascii character
91-
* which composes the string representation of this integer
92-
*
93-
* # Return value
94-
* A tuple containing the byte vector, and a boolean flag indicating
95-
* whether it represents a special value like `inf`, `-inf`, `NaN` or not.
96-
* It returns a tuple because there can be ambiguity between a special value
97-
* and a number representation at higher bases.
98-
*
99-
* # Failure
100-
* - Fails if `radix` < 2 or `radix` > 36.
101-
*/
77+
/// Converts an integral number to its string representation as a byte vector.
78+
/// This is meant to be a common base implementation for all integral string
79+
/// conversion functions like `to_string()` or `to_str_radix()`.
80+
///
81+
/// # Arguments
82+
///
83+
/// - `num` - The number to convert. Accepts any number that
84+
/// implements the numeric traits.
85+
/// - `radix` - Base to use. Accepts only the values 2-36.
86+
/// - `sign` - How to emit the sign. Options are:
87+
/// - `SignNone`: No sign at all. Basically emits `abs(num)`.
88+
/// - `SignNeg`: Only `-` on negative values.
89+
/// - `SignAll`: Both `+` on positive, and `-` on negative numbers.
90+
/// - `f` - a callback which will be invoked for each ascii character
91+
/// which composes the string representation of this integer
92+
///
93+
/// # Panics
94+
///
95+
/// - Panics if `radix` < 2 or `radix` > 36.
10296
fn int_to_str_bytes_common<T: Int>(num: T, radix: uint, sign: SignFormat, f: |u8|) {
10397
assert!(2 <= radix && radix <= 36);
10498

@@ -415,10 +409,8 @@ pub fn float_to_str_bytes_common<T: Float>(
415409
(buf, false)
416410
}
417411

418-
/**
419-
* Converts a number to its string representation. This is a wrapper for
420-
* `to_str_bytes_common()`, for details see there.
421-
*/
412+
/// Converts a number to its string representation. This is a wrapper for
413+
/// `to_str_bytes_common()`, for details see there.
422414
#[inline]
423415
pub fn float_to_str_common<T: Float>(
424416
num: T, radix: uint, negative_zero: bool,

0 commit comments

Comments
 (0)