Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ main
Function
main
publication/code/chapter06/sequential_search.rs:20–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
}
19
20
fn main() {
21
let num = 8;
22
let nums = [9,3,7,4,1,6,2,8,5];
23
let found = sequential_search(&nums, num);
24
println!(
"nums contains {num}: {found}"
);
25
}
Callers
nothing calls this directly
Calls
1
sequential_search
Function · 0.70
Tested by
no test coverage detected