MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

code/chapter05/exponential_search.rs:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41fn main() {
42 let nums = [1,9,10,15,16,17,19,23,27,28,29,30,32,35];
43 let target = 27;
44 let found = exponential_search(&nums, target);
45 println!("{target} in nums: {found}");
46}

Callers

nothing calls this directly

Calls 1

exponential_searchFunction · 0.70

Tested by

no test coverage detected