Skip to content

Commit df5aa85

Browse files
committed
Add an example to test formatting.
1 parent 7bd62ce commit df5aa85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/format_test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extern crate measurements;
2+
use measurements::Temperature;
3+
fn main() {
4+
let t = Temperature::from_celsius(0.1);
5+
println!("{0:.9} outside", t);
6+
println!("{0:.9} outside", t.as_celsius());
7+
}

0 commit comments

Comments
 (0)