Skip to content

Commit 2371782

Browse files
committedJul 8, 2018
use proper footnote syntax for references
The previous syntax was causing rustdoc to interpret them as links.
1 parent 0c0315c commit 2371782

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed
 

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

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
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 "Printing
12+
//! Floating-Point Numbers Quickly and Accurately"[^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.
1716
1817
use cmp::Ordering;
1918

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

+6-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
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 described in "Printing Floating-Point Numbers Quickly
12+
//! and Accurately with Integers"[^1]. It uses about 1KB of precomputed table, and in turn, it's
13+
//! 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.
1817
1918
use num::diy_float::Fp;
2019
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};

0 commit comments

Comments
 (0)