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

Function print

0a_error_handling/rust/using_eyre/src/main.rs:9–14  ·  view source on GitHub ↗
(result: Result<i32>)

Source from the content-addressed store, hash-verified

7}
8
9fn print(result: Result<i32>) {
10 match result {
11 Ok(n) => println!("The first doubled is {}", n),
12 Err(e) => println!("Error: {}", e),
13 }
14}
15
16fn main() {
17 let numbers = vec!["42", "93", "18"];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected