lib/softcover/commands/exercises.rb in softcover-1.2.8 vs lib/softcover/commands/exercises.rb in softcover-1.2.9
- old
+ new
@@ -36,10 +36,11 @@
line_number += 1
end
File.open(path, "w") { |f| f.write str }
- puts "#{path}: wrote #{n} exercises"
+ exercises = n == 1 ? "exercise" : "exercises"
+ puts "#{path}: wrote #{n} #{exercises}"
end
end
end
end