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

Function multiply

0a_error_handling/rust/nohandling.rs:1–5  ·  view source on GitHub ↗
(first_number_str: &str, second_number_str: &str)

Source from the content-addressed store, hash-verified

1fn multiply(first_number_str: &str, second_number_str: &str) -> i32 {
2 let first_number = first_number_str.parse::<i32>().unwrap();
3 let second_number = second_number_str.parse::<i32>().unwrap();
4 first_number * second_number
5}
6
7fn main() {
8 let twenty = multiply("10", "2");

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected