diff --git a/exercises/robot-name/example.jl b/exercises/robot-name/example.jl index a1fac86865577..cb64f33860700 100644 --- a/exercises/robot-name/example.jl +++ b/exercises/robot-name/example.jl @@ -2,7 +2,7 @@ new_name() = join(map(x->Char(x), rand(65:90, 2))) * repr(rand(100:999)) -type Robot +mutable struct Robot name::AbstractString Robot() = new(new_name()) @@ -12,4 +12,3 @@ function reset!(instance::Robot) instance.name = new_name() instance end -