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

Function naming

Source Code/18-05.rs:8–12  ·  view source on GitHub ↗
(p: Person)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected