Skip to content

Commit

Permalink
fix(literals): remove non-existent d suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahans committed Apr 9, 2024
1 parent 99b8b48 commit 68df241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
```

~~~~exercism/advanced
Expand Down

0 comments on commit 68df241

Please sign in to comment.