Skip to content

Commit 773c32e

Browse files
committed
adding rust to in-text code blocks
1 parent 3db41a5 commit 773c32e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chapters/monte_carlo/monte_carlo.md

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ each point is tested to see whether it's in the circle or not:
4343
[import:7-9, lang:"c_cpp"](code/c/monte_carlo.c)
4444
{% sample lang="hs" %}
4545
[import:7-7, lang:"haskell"](code/haskell/monteCarlo.hs)
46+
{% sample lang="rs" %}
47+
[import:7-9, lang:"rust"](code/rust/monte_carlo.rs)
4648
{% endmethod %}
4749

4850
If it's in the circle, we increase an internal count by one, and in the end,

0 commit comments

Comments
 (0)