about summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
authorBirunthan Mohanathas <birunthan@mohanathas.com>2013-07-22 19:03:39 +0300
committerDaniel Micay <danielmicay@gmail.com>2013-07-24 09:45:20 -0400
commitd047cf1ec612f766365bde0c9d146b58ef3cc7c7 (patch)
tree1e78f76ac07c358321b3d32d2d943a47a8c1dc32 /src/libstd/rand
parentaf5a17b7d0788438bb6b39cccfc96a0b13e00250 (diff)
Change 'print(fmt!(...))' to printf!/printfln! in src/lib*
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/distributions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rand/distributions.rs b/src/libstd/rand/distributions.rs
index 4d983b94954..56eae042875 100644
--- a/src/libstd/rand/distributions.rs
+++ b/src/libstd/rand/distributions.rs
@@ -70,7 +70,7 @@ fn ziggurat<R:Rng>(rng: &mut R,
 ///
 /// fn main() {
 ///     let normal = 2.0 + (*rand::random::<StandardNormal>()) * 3.0;
-///     println(fmt!("%f is from a N(2, 9) distribution", normal))
+///     printfln!("%f is from a N(2, 9) distribution", normal)
 /// }
 /// ~~~
 pub struct StandardNormal(f64);
@@ -124,7 +124,7 @@ impl Rand for StandardNormal {
 ///
 /// fn main() {
 ///     let exp2 = (*rand::random::<Exp1>()) * 0.5;
-///     println(fmt!("%f is from a Exp(2) distribution", exp2));
+///     printfln!("%f is from a Exp(2) distribution", exp2);
 /// }
 /// ~~~
 pub struct Exp1(f64);