From 348132196a1a25336d2df6b6e0989540cdc8f7e1 Mon Sep 17 00:00:00 2001 From: nham Date: Thu, 21 Aug 2014 02:08:17 -0400 Subject: [PATCH] Surround formula in a 'notrust' code block --- src/libstd/rand/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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.