mirror of
https://github.com/fanzeyi/cargo-play
synced 2024-11-10 05:04:13 +00:00
10 lines
251 B
Rust
10 lines
251 B
Rust
//# rand = "0.5.0"
|
|
//# dtoa = { git = "https://github.com/dtolnay/dtoa.git" }
|
|
|
|
fn main() -> std::io::Result<()> {
|
|
let mut buffer = dtoa::Buffer::new();
|
|
let printed = buffer.format(2.71828f64);
|
|
assert_eq!(printed, "2.71828");
|
|
|
|
Ok(())
|
|
}
|