/// Shiny's motto
struct Steeve;
impl SteeveJobs {
/// Return Steeve Jobs quote
fn said(&self) -> &str {
"Quality is more important than quantity. \
One home run is much better than two doubles."
}
}
fn main() {
let steeve_jobs = SteeveJobs;
println!("Steeve Jobs - {}", steeve_jobs.said());
}
shinysyntax Goto Github PK
Name: Shiny
Type: User
Twitter: shiny_940128
Blog: https://shiny-dev.com/