Skip to content

Commit 6ae90cc

Browse files
author
James O'Cull
committed
Updating readme
1 parent da7112b commit 6ae90cc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,32 @@
44

55
Hurray! Now you can work with units of measure in a headache-free way.
66

7-
Currently only `Length` is available, but I am planning to add more shortly.
7+
Currently available units:
8+
9+
- Length
10+
- Temperature
811

912
### Example
1013

1114
In your Cargo.toml...
1215

1316
```
1417
[dependencies]
15-
measurements = "^0.1.0"
18+
measurements = "^0.2.0"
1619
```
1720

1821
In your code...
1922

2023
```
2124
extern crate measurements;
2225
23-
use measurements::length::Length;
26+
use measurements::length::{Length, Temperature};
2427
2528
let football_field = Length::from_yards(100.0);
2629
let meters = football_field.as_meters();
2730
println!("There are {} meters in a football field.", meters);
31+
32+
let boiling_water = Temperature::from_celsius(100.0);
33+
let fahrenheit = boiling_water.as_fahrenheit();
34+
println!("Boiling water measures at {} degrees fahrenheit.", fahrenheit);
2835
```

0 commit comments

Comments
 (0)