When posting a theme make sure it has
- title (theme name or whatever)
- link to a gist or github repo with theme files
- screenshot attached (just drag an image onto a comment area)
// ❌ not testable | |
fn greeting_hard_to_test(nb: i32, name: &str) { | |
for _ in 0..nb { | |
println!("hi {}", name); | |
} | |
} | |
// ✅ easy to test | |
trait Logger { | |
fn log(&mut self, value: String); |