Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ main
Function
main
publication/code/chapter04/hot_potato.rs:61–65 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
59
}
60
61
fn main() {
62
let names = vec![
"Mon"
,
"Tom"
,
"Kew"
,
"Lisa"
,
"Marry"
,
"Bob"
];
63
let survivor = hot_potato(names, 8);
64
println!(
"The survival person is {survivor}"
);
65
}
Callers
nothing calls this directly
Calls
1
hot_potato
Function · 0.70
Tested by
no test coverage detected