Skip to content

Commit a96c084

Browse files
Convert backtick (`) admonition fences to tildes (~). (#2495)
1 parent 7828343 commit a96c084

File tree

29 files changed

+62
-62
lines changed

29 files changed

+62
-62
lines changed

exercises/practice/binary-search/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Your task is to implement a binary search algorithm.
55
A binary search algorithm finds an item in a list by repeatedly splitting it in half, only keeping the half which contains the item we're looking for.
66
It allows us to quickly narrow down the possible locations of our item until we find it, or until we've eliminated all possible locations.
77

8-
```exercism/caution
8+
~~~~exercism/caution
99
Binary search only works when a list has been sorted.
10-
```
10+
~~~~
1111

1212
The algorithm looks like this:
1313

exercises/practice/bob/.approaches/answer-array/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ The correct answer is selected from the array by using the score as the array in
3333
The `String` [`trim()`][trim] method is applied to the input to eliminate any whitespace at either end of the input.
3434
If the string has no characters left, it returns the response for saying nothing.
3535

36-
```exercism/caution
36+
~~~~exercism/caution
3737
Note that a `null` `string` would be different from a `String` of all whitespace.
3838
A `null` `String` would throw a `NullPointerException` if `trim()` were applied to it.
39-
```
39+
~~~~
4040

4141
A [Pattern][pattern] is defined to look for at least one English alphabetic character.
4242

exercises/practice/bob/.approaches/if-statements/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ Execution will either return or will continue to the next statement anyway.
4040
The `String` [`trim()`][trim] method is applied to the input to eliminate any whitespace at either end of the input.
4141
If the string has no characters left, it returns the response for saying nothing.
4242

43-
```exercism/caution
43+
~~~~exercism/caution
4444
Note that a `null` `string` would be different from a `String` of all whitespace.
4545
A `null` `String` would throw a `NullPointerException` if `trim()` were applied to it.
46-
```
46+
~~~~
4747

4848
A [Pattern][pattern] is defined to look for at least one English alphabetic character.
4949

exercises/practice/collatz-conjecture/.approaches/intstream-iterate/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Another lambda is used to process the input number.
2727
[Bitwise operators][bitwise-operators] are used to check if the number is odd and to divide it in half if it is even.
2828
The bitwise AND operator (`&`) compares the number with `1` to see if it is odd.
2929

30-
```exercism/note
30+
~~~~exercism/note
3131
Another way to go about checking if the number is even or odd is to see if it is evenly divided by `2`
3232
by using the [modulo (also know as the remainder) operator](https://www.geeksforgeeks.org/modulo-or-remainder-operator-in-java/).
3333
So, to see if it is even we could use `start % 2 == 0`.
3434
That might be slightly less performant but perhaps more readable for intent, especially for those who don't "speak binary".
35-
```
35+
~~~~
3636

3737
If the number is even, then the right shift operator (`>>`) shifts all of the bits once to the right, which is the equivalent
3838
of dividing the number by `2`.

exercises/practice/collatz-conjecture/.approaches/while-loop/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ If the number is already `1` before control flow gets to the `while` loop, then
3030
[Bitwise operators][bitwise-operators] are used to check if the number is odd and to divide it in half if it is even.
3131
The bitwise AND operator (`&`) compares the number with `1` to see if it is odd.
3232

33-
```exercism/note
33+
~~~~exercism/note
3434
Another way to go about checking if the number is even or odd is to see if it is evenly divided by `2`
3535
by using the [modulo (also know as the remainder) operator](https://www.geeksforgeeks.org/modulo-or-remainder-operator-in-java/).
3636
So, to see if it is even we could use `if (start % 2 == 0)`.
3737
That might be slightly less performant but perhaps more readable for intent, especially for those who don't "speak binary".
38-
```
38+
~~~~
3939

4040
If the number is even, then the right shift equals operator (`>>=`) shifts all of the bits once to the right, which is the equivalent
4141
of dividing the number by `2`.

exercises/practice/darts/.approaches/doublepredicate/content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ Then the radius of the dart throw is calculated and assigned to a variable.
3333
A `DoublePredicate` is defined as a [lambda][lambda] that takes in a `double` value that represents the ring radius
3434
and compares it with the dart throw radius.
3535

36-
```exercism/note
36+
~~~~exercism/note
3737
Although the dart throw radius is not directly passed to the lambda, the lambda can use it.
3838
To do so is called [capturing](https://www.geeksforgeeks.org/java-lambda-expression-variable-capturing-with-examples/) the variable.
3939
To capture a variable, it must be in the enclosing [scope](https://www.geeksforgeeks.org/variable-scope-in-java/)
4040
of the lambda, and it must be effectively `final`,
4141
meaning that is is not changed in the course of the program.
42-
```
42+
~~~~
4343

44-
```exercism/note
44+
~~~~exercism/note
4545
The reason `DoublePredicate` is used instead of `Predicate<Double>` is to avoid the
4646
[autoboxing](https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html)
4747
that `Predicate<Double>` would do.
4848
`DoublePredicate` handles its primitive `double` argument without boxing it.
4949
This is also why the lambda is required to be given a specific target type instead of `var`,
5050
since the same lambda could be used for either `DoublePredicate` or `Predicate<Double>`.
51-
```
51+
~~~~
5252

5353
A series of calls to the `DoublePredicate` is then made.
5454

exercises/practice/difference-of-squares/.approaches/intstream/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class DifferenceOfSquaresCalculator {
2424

2525
This solution iterates using the [`rangeClosed()`][rangeclosed] method of the [`IntStream`][intstream] class.
2626

27-
```exercism/note
27+
~~~~exercism/note
2828
The difference between `rangeClosed()` and [`range()`](https://docs.oracle.com/javase/8/docs/api/java/util/stream/IntStream.html#range-int-int-)
2929
is that the ending bound is _inclusive_ for `rangeClosed()` and _exclusive_ for `range()`.
3030
So, `IntStream.range(1, 10)` iterates from `1` up to but not including `10`,
3131
and `IntStream.rangeClosed(1, 10)` iterates from `1` through `10`.
32-
```
32+
~~~~
3333

3434
In `computeSquareOfSumTo`, the numbers are added with the [`sum()`][sum] method.
3535
The sum of the numbers is then multiplied by itself to get the square of the summed numbers.

exercises/practice/etl/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ This needs to be changed to store each individual letter with its score in a one
2222

2323
As part of this change, the team has also decided to change the letters to be lower-case rather than upper-case.
2424

25-
```exercism/note
25+
~~~~exercism/note
2626
If you want to look at how the data was previously structured and how it needs to change, take a look at the examples in the test suite.
27-
```
27+
~~~~

exercises/practice/gigasecond/.docs/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Then we can use metric system prefixes for writing large numbers of seconds in m
1313
- Perhaps you and your family would travel to somewhere exotic for two megaseconds (that's two million seconds).
1414
- And if you and your spouse were married for _a thousand million_ seconds, you would celebrate your one gigasecond anniversary.
1515

16-
```exercism/note
16+
~~~~exercism/note
1717
If we ever colonize Mars or some other planet, measuring time is going to get even messier.
1818
If someone says "year" do they mean a year on Earth or a year on Mars?
1919
2020
The idea for this exercise came from the science fiction novel ["A Deepness in the Sky"][vinge-novel] by author Vernor Vinge.
2121
In it the author uses the metric system as the basis for time measurements.
2222
2323
[vinge-novel]: https://www.tor.com/2017/08/03/science-fiction-with-something-for-everyone-a-deepness-in-the-sky-by-vernor-vinge/
24-
```
24+
~~~~

exercises/practice/isbn-verifier/.approaches/chars-foreach/content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ If so, it gets the digit value of the codepoint by subtracting the [ASCII][ascii
5151
So, if the codepoint is a `0`, then subtracting the ASCII value of `0` from itself results in `0`.
5252
If the codepoint is a `1`, then subtracting the ASCII value of `0` from the ASCII value of `1` results in `1`, and so on.
5353

54-
```exercism/note/
54+
~~~~exercism/note/
5555
Another way to convert the codepoint to a digit is to use the built-in
5656
[`Character.digit()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Character.html#digit(char,%20int))
5757
method, which also works for [Unicode](https://docs.oracle.com/javase/tutorial/i18n/text/unicode.html) codepoints.
5858
Since for this exercise all of the codepoints are ASCII, simple ASCII math will do.
59-
```
59+
~~~~
6060

6161
The digit is multiplied by 10 minus the position, with the position starting at `0`.
6262
So, for the position furthest to the left, the digit is multiplied by `10 - 0` (`10`).

0 commit comments

Comments
 (0)