Skip to content

Commit ff3b53c

Browse files
depateleios
authored andcommitted
Fix typo in fortran syntax highlighting declaration (#416)
* Delete monte_carlo_pi.f90 * init * further implementation * next * fix wrong fortran syntax highlight declaration * fix that merge thing in bubble.f90 again... * fix that merge thing in bubble.f90 again... * fix the fix
1 parent 684475c commit ff3b53c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contents/euclidean_algorithm/euclidean_algorithm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The algorithm is a simple way to find the *greatest common divisor* (GCD) of two
4040
{% sample lang="nim" %}
4141
[import:13-24, lang="nim"](code/nim/euclid_algorithm.nim)
4242
{% sample lang="f90" %}
43-
[import:1-19, lang="Fortran"](code/fortran/euclidean.f90)
43+
[import:1-19, lang="fortran"](code/fortran/euclidean.f90)
4444
{% endmethod %}
4545

4646
Here, we simply line the two numbers up every step and subtract the lower value from the higher one every timestep. Once the two values are equal, we call that value the greatest common divisor. A graph of `a` and `b` as they change every step would look something like this:
@@ -87,7 +87,7 @@ Modern implementations, though, often use the modulus operator (%) like so
8787
{% sample lang="nim" %}
8888
[import:1-11, lang="nim"](code/nim/euclid_algorithm.nim)
8989
{% sample lang="f90" %}
90-
[import:21-34, lang="Fortran"](code/fortran/euclidean.f90)
90+
[import:21-34, lang="fortran"](code/fortran/euclidean.f90)
9191
{% endmethod %}
9292

9393
Here, we set `b` to be the remainder of `a%b` and `a` to be whatever `b` was last timestep. Because of how the modulus operator works, this will provide the same information as the subtraction-based implementation, but when we show `a` and `b` as they change with time, we can see that it might take many fewer steps:
@@ -139,7 +139,7 @@ The Euclidean Algorithm is truly fundamental to many other algorithms throughout
139139
{% sample lang="nim" %}
140140
[import, lang="nim" %](code/nim/euclid_algorithm.nim)
141141
{% sample lang="f90" %}
142-
[import, lang="Fortran"](code/fortran/euclidean.f90)
142+
[import, lang="fortran"](code/fortran/euclidean.f90)
143143
{% endmethod %}
144144

145145

0 commit comments

Comments
 (0)