Skip to content

Commit 2d5d639

Browse files
committed
Fix a few documentation warnings
1 parent 989fa05 commit 2d5d639

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

src/libcore/num/flt2dec/strategy/dragon.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/*!
12-
Almost direct (but slightly optimized) Rust translation of Figure 3 of \[1\].
13-
14-
\[1\] Burger, R. G. and Dybvig, R. K. 1996. Printing floating-point numbers
15-
quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
16-
*/
11+
//! Almost direct (but slightly optimized) Rust translation of Figure 3 of "Burger, R. G. and
12+
//! Dybvig, R. K. 1996. Printing floating-point numbers quickly and accurately. SIGPLAN Not. 31, 5
13+
//! (May. 1996), 108-116."
1714
1815
use cmp::Ordering;
1916

src/libcore/num/flt2dec/strategy/grisu.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/*!
12-
Rust adaptation of Grisu3 algorithm described in \[1\]. It uses about
13-
1KB of precomputed table, and in turn, it's very quick for most inputs.
14-
15-
\[1\] Florian Loitsch. 2010. Printing floating-point numbers quickly and
16-
accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
17-
*/
11+
//! Rust adaptation of the Grisu3 algorithm. It uses about 1KB of precomputed table, and in turn,
12+
//! it's very quick for most inputs.
13+
//!
14+
//! The Grisu3 algorithm is described in "Florian Loitsch. 2010. Printing floating-point numbers
15+
//! quickly and accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243."
1816
1917
use num::diy_float::Fp;
2018
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};

0 commit comments

Comments
 (0)