MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / print

Function print

0a_error_handling/rust/more_boilerplate.rs:54–59  ·  view source on GitHub ↗
(result: Result<i32>)

Source from the content-addressed store, hash-verified

52}
53
54fn print(result: Result<i32>) {
55 match result {
56 Ok(n) => println!("The first doubled is {}", n),
57 Err(e) => println!("Error: {}", e),
58 }
59}
60
61fn main() {
62 let numbers = vec!["42", "93", "18"];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected