Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
34.6*/
3
fn 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