Skip to content

Commit

Permalink
probably what was intended
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Aug 9, 2016
1 parent aa67f47 commit d414d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Juliet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function choose_lesson(courses::Vector{Types.Course})

print_options(courses, "Courses:")

input = AbstractString{}
input = ""
while (print("> "); input = getInput();
!isa(parse(input), Number) ||
!(0 < parse(Int, input) <= length(courses)))
Expand All @@ -104,7 +104,7 @@ function choose_lesson(course::Types.Course)
print_options(course.lessons,
"Lessons in $(course.name) (type `!back` to return to the total list):")

input = AbstractString{}
input = ""
while (print("> "); input = getInput();
!isa(parse(input), Number) ||
!(0 < parse(Int, input) <= length(course.lessons)))
Expand Down

0 comments on commit d414d23

Please sign in to comment.