Skip to content

Commit 3481321

Browse files
committed
Surround formula in a 'notrust' code block
1 parent 9315d84 commit 3481321

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/rand/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@
7676
//! circle, both centered at the origin. Since the area of a unit circle is pi,
7777
//! the ratio
7878
//!
79+
//! ```notrust
7980
//! (area of unit circle) / (area of square)
81+
//! ```
8082
//!
8183
//! is equal to pi / 4. So if we sample many points randomly from the square,
8284
//! roughly pi / 4 of them should be inside the circle.

0 commit comments

Comments
 (0)