MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / naming

Function naming

Source Code/18-06.rs:9–13  ·  view source on GitHub ↗
(p: Person)

Source from the content-addressed store, hash-verified

7 family_names: String,
8 }
9 fn naming(p: Person) -> String {
10 format!("{} {}",
11 p.personal_names,
12 p.family_names)
13 }
14 let person = Person {
15 personal_names: "John".to_string(),
16 family_names: "Doe".to_string(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected