Skip to content

Commit e19f00e

Browse files
authored
Fix Swift and JavaScript code imports. (#208)
* Use lang:"javascript" instead of lang:"js" in monte_carlo.md to resolve warnings. * Fix Swift import in monte_carlo.md.
1 parent 39bbbf6 commit e19f00e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapters/monte_carlo/monte_carlo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ each point is tested to see whether it's in the circle or not:
4444
{% sample lang="c" %}
4545
[import:7-9, lang:"c_cpp"](code/c/monte_carlo.c)
4646
{% sample lang="js" %}
47-
[import:2-6, lang:"js"](code/js/monte_carlo.js)
47+
[import:2-6, lang:"javascript"](code/js/monte_carlo.js)
4848
{% sample lang="hs" %}
4949
[import:7-7, lang:"haskell"](code/haskell/monteCarlo.hs)
5050
{% sample lang="rs" %}
@@ -99,7 +99,7 @@ Feel free to submit your version via pull request, and thanks for reading!
9999
[import, lang:"c_cpp"](code/c/monte_carlo.c)
100100
{% sample lang="js" %}
101101
### Javascript
102-
[import, lang:"js"](code/js/monte_carlo.js)
102+
[import, lang:"javascript"](code/js/monte_carlo.js)
103103
{% sample lang="hs" %}
104104
### Haskell
105105
[import, lang:"haskell"](code/haskell/monteCarlo.hs)
@@ -117,7 +117,7 @@ Feel free to submit your version via pull request, and thanks for reading!
117117
[import, lang:"java"](code/java/MonteCarlo.java)
118118
{% sample lang="swift" %}
119119
### Swift
120-
[import, lang:"swift"](code/java/monte_carlo.swift)
120+
[import, lang:"swift"](code/swift/monte_carlo.swift)
121121
{% endmethod %}
122122

123123

0 commit comments

Comments
 (0)