Skip to content

Commit eeed6ed

Browse files
authored
fix(literals): move reference link into admonition (#856)
* fix(literals): move reference link into admonition Special blocks (admonitions) are rendered by themselves without including the rest of the page. Therefore, a reference link from the bottom of the file is unavailable and cannot be resolved properly. This is fixed by moving it to the bottom of the block instead of the bottom of the file. * fix(literals): remove non-existent `d` suffix
1 parent c372ebe commit eeed6ed

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

concepts/literals/about.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This is a good default case and use-cases with the narrower `float` type are les
3636
```cpp
3737
auto light_year_in_m{9.46073e+15f}; // well in the range of float
3838
auto earth_to_edge_comoving_distance_in_nm{4.32355e+32}; // needs double type for magnitude
39-
auto eulers_number{2.718281828459045d}; // needs double type for precision
39+
auto eulers_number{2.718281828459045}; // needs double type for precision
4040
```
4141

4242
~~~~exercism/advanced
@@ -68,8 +68,9 @@ auto il_nam{"보는 것이 하는 것보다 더 재미있을 수가 없지"sv};
6868
6969
A _string_view_ can be seen as a reference to a const string.
7070
71+
[ascii-code]: https://www.ascii-code.com/
72+
7173
~~~~
7274

7375
[numbers-concept]: https://exercism.org/tracks/cpp/concepts/numbers
7476
[in-depth-integers]: https://www.learncpp.com/cpp-tutorial/fixed-width-integers-and-size-t/
75-
[ascii-code]: https://www.ascii-code.com/

concepts/literals/introduction.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This is a good default case and use-cases with the narrower `float` type are les
3636
```cpp
3737
auto light_year_in_m{9.46073e+15f}; // well in the range of float
3838
auto earth_to_edge_comoving_distance_in_nm{4.32355e+32}; // needs double type for magnitude
39-
auto eulers_number{2.718281828459045d}; // needs double type for precision
39+
auto eulers_number{2.718281828459045}; // needs double type for precision
4040
```
4141

4242
~~~~exercism/advanced
@@ -68,8 +68,9 @@ auto il_nam{"보는 것이 하는 것보다 더 재미있을 수가 없지"sv};
6868
6969
A _string_view_ can be seen as a reference to a const string.
7070
71+
[ascii-code]: https://www.ascii-code.com/
72+
7173
~~~~
7274

7375
[numbers-concept]: https://exercism.org/tracks/cpp/concepts/numbers
7476
[in-depth-integers]: https://www.learncpp.com/cpp-tutorial/fixed-width-integers-and-size-t/
75-
[ascii-code]: https://www.ascii-code.com/

0 commit comments

Comments
 (0)