Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(literals): move reference link into admonition #856

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions concepts/literals/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This is a good default case and use-cases with the narrower `float` type are les
```cpp
auto light_year_in_m{9.46073e+15f}; // well in the range of float
auto earth_to_edge_comoving_distance_in_nm{4.32355e+32}; // needs double type for magnitude
auto eulers_number{2.718281828459045d}; // needs double type for precision
auto eulers_number{2.718281828459045}; // needs double type for precision
```

~~~~exercism/advanced
Expand Down Expand Up @@ -68,8 +68,9 @@ auto il_nam{"보는 것이 하는 것보다 더 재미있을 수가 없지"sv};

A _string_view_ can be seen as a reference to a const string.

[ascii-code]: https://www.ascii-code.com/

~~~~

[numbers-concept]: https://exercism.org/tracks/cpp/concepts/numbers
[in-depth-integers]: https://www.learncpp.com/cpp-tutorial/fixed-width-integers-and-size-t/
[ascii-code]: https://www.ascii-code.com/
5 changes: 3 additions & 2 deletions concepts/literals/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This is a good default case and use-cases with the narrower `float` type are les
```cpp
auto light_year_in_m{9.46073e+15f}; // well in the range of float
auto earth_to_edge_comoving_distance_in_nm{4.32355e+32}; // needs double type for magnitude
auto eulers_number{2.718281828459045d}; // needs double type for precision
auto eulers_number{2.718281828459045}; // needs double type for precision
vaeng marked this conversation as resolved.
Show resolved Hide resolved
```

~~~~exercism/advanced
Expand Down Expand Up @@ -68,8 +68,9 @@ auto il_nam{"보는 것이 하는 것보다 더 재미있을 수가 없지"sv};

A _string_view_ can be seen as a reference to a const string.

[ascii-code]: https://www.ascii-code.com/

~~~~

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