Sha256: a1467426d6b3f159f4b238105e1369a23c0ef0dda3664b63716c77071f0b6bba

Contents?: true

Size: 160 Bytes

Versions: 101

Compression:

Stored size: 160 Bytes

Contents

pub fn hello(name: Option<&str>) -> String {
    match name {
        Some(n) => format!("Hello, {}!", n),
        None => "Hello, World!".to_string(),
    }
}

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
trackler-2.0.7.0 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.44 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.43 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.42 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.41 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.40 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.39 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.38 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.37 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.36 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.35 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.34 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.33 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.32 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.31 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.30 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.29 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.28 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.27 tracks/rust/exercises/hello-world/example.rs
trackler-2.0.6.26 tracks/rust/exercises/hello-world/example.rs