MCPcopy Index your code
hub / github.com/derekbanas/Rust-Tutorial / change_string

Function change_string

main.rs:134–137  ·  view source on GitHub ↗
(name: &mut String)

Source from the content-addressed store, hash-verified

132}
133
134fn change_string(name: &mut String){
135 name.push_str(" is Happy");
136 println!("Message : {}", name);
137}
138
139// This function sums values in a list (Receives reference to list)
140fn sum_list(list: &[i32]) -> i32 {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected