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

Function main

code/chapter04/num2str_rec.rs:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15fn main() {
16 let num = 100; let sb = num2str_rec(num,2);
17 let so = num2str_rec(num,8);
18 let sh = num2str_rec(num,16);
19 println!("{num} is b{sb}, o{so}, x{sh}");
20}

Callers

nothing calls this directly

Calls 1

num2str_recFunction · 0.70

Tested by

no test coverage detected