about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authornham <hamann.nick@gmail.com>2014-08-21 02:08:17 -0400
committernham <hamann.nick@gmail.com>2014-08-21 02:08:17 -0400
commit348132196a1a25336d2df6b6e0989540cdc8f7e1 (patch)
treed9d70a54ddc4fc99b5132a4052ef1f1e5cd47be1 /src/libstd
parent9315d841c7f2041e3b6960a5f5400747b1989647 (diff)
downloadrust-348132196a1a25336d2df6b6e0989540cdc8f7e1.tar.gz
rust-348132196a1a25336d2df6b6e0989540cdc8f7e1.zip
Surround formula in a 'notrust' code block
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs
index b9066c2f338..00abd84d5c2 100644
--- a/src/libstd/rand/mod.rs
+++ b/src/libstd/rand/mod.rs
@@ -76,7 +76,9 @@
 //! circle, both centered at the origin. Since the area of a unit circle is pi,
 //! the ratio
 //!
+//! ```notrust
 //!     (area of unit circle) / (area of square)
+//! ```
 //!
 //! is equal to pi / 4. So if we sample many points randomly from the square,
 //! roughly pi / 4 of them should be inside the circle.