Skip to content

Commit 8e7cd6a

Browse files
committed
docs: code example in README simplified
1 parent e2a1c50 commit 8e7cd6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ using namespace mp_units::si::unit_symbols;
3737
static_assert(1 * km / (1 * s) == 1000 * m / s);
3838

3939
// Function signatures encode domain/physics, not just dimensions
40-
void calculate_trajectory(QuantityOf<isq::kinetic_energy> auto e);
40+
void calculate_trajectory(quantity<isq::kinetic_energy[J]> e);
4141

4242
int main()
4343
{
@@ -50,7 +50,7 @@ int main()
5050
}
5151
```
5252
53-
[![Try it live on Compiler Explorer](https://img.shields.io/badge/Try_live_on-Compiler_Explorer-black?style=for-the-badge&logo=compilerexplorer&labelColor=black&color=67C52A)](https://godbolt.org/z/dccffde1v)
53+
[![Try it live on Compiler Explorer](https://img.shields.io/badge/Try_live_on-Compiler_Explorer-black?style=for-the-badge&logo=compilerexplorer&labelColor=black&color=67C52A)](https://godbolt.org/z/YWErT7ofs)
5454
5555
### What Sets mp-units Apart?
5656

0 commit comments

Comments
 (0)