Skip to content

Commit

Permalink
robot-name: Update to v0.6 (fixes JuliaLang#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaMann committed Jun 19, 2017
1 parent ae57347 commit 668d3ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exercises/robot-name/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -12,4 +12,3 @@ function reset!(instance::Robot)
instance.name = new_name()
instance
end

0 comments on commit 668d3ae

Please sign in to comment.