MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / double

Function double

Source Code/09-13.rs:4–4  ·  view source on GitHub ↗
(x: f64)

Source from the content-addressed store, hash-verified

234.6*/
3fn main() {
4 fn double(x: f64) -> f64 { x * 2. }
5 print!("{}", double(17.3));
6}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected