MCPcopy Create free account
hub / github.com/WayLearnLatam/Learning-Rust / imprimir_string

Function imprimir_string

5_ownership/src/main.rs:65–67  ·  view source on GitHub ↗
(s: String)

Source from the content-addressed store, hash-verified

63 imprimir_string(palabra); // Se mueve a "s"
64
65 fn imprimir_string(s: String) {
66 println!("Se imprimió: {}", s);
67 } // s se libera aquí
68 // hacer esto deja a la variable "palabra" sea limpiada, para evitarlo es necesario devolver
69 // el valor de la variable antes de finalizar la funcion imprimir_string:
70 fn imprimir_y_devolver_string(s: String) -> String {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected