Skip to content

Commit 3cf8c21

Browse files
committed
Fixed book.json
1 parent 92e5489 commit 3cf8c21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
},
167167
{
168168
"lang": "bf",
169-
"name": "brainfuck"
169+
"name": "Brainfuck"
170170
}
171171
]
172172
}

contents/euclidean_algorithm/euclidean_algorithm.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The algorithm is a simple way to find the *greatest common divisor* (GCD) of two
6060
{% sample lang="lolcode" %}
6161
[import:25-40, lang="LOLCODE"](code/lolcode/euclid.lol)
6262
{% sample lang="bf" %}
63-
[import, lang="Brainfuck"](code/brainfuck/euclidean_sub.bf)
63+
[import, lang="brainfuck"](code/brainfuck/euclidean_sub.bf)
6464
{% endmethod %}
6565

6666
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:
@@ -127,7 +127,7 @@ Modern implementations, though, often use the modulus operator (%) like so
127127
{% sample lang="lolcode" %}
128128
[import:9-23, lang="LOLCODE"](code/lolcode/euclid.lol)
129129
{% sample lang="bf" %}
130-
[import, lang="Brainfuck"](code/brainfuck/euclidean_mod.bf)
130+
[import, lang="brainfuck"](code/brainfuck/euclidean_mod.bf)
131131
{% endmethod %}
132132

133133
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:
@@ -204,7 +204,7 @@ and modulo method:
204204
{% sample lang="bf" %}
205205
#### Subtraction varient
206206
##### Code
207-
[import, lang="Brainfuck"](code/brainfuck/euclidean_sub.bf)
207+
[import, lang="brainfuck"](code/brainfuck/euclidean_sub.bf)
208208
##### Explanation
209209
Basic plan: get |a-b|, check if 0
210210

0 commit comments

Comments
 (0)