lib/sym/app/commands/show_examples.rb in sym-2.1.0 vs lib/sym/app/commands/show_examples.rb in sym-2.1.1
- old
+ new
@@ -63,12 +63,12 @@
end
def example(comment: nil, command: nil, echo: nil, result: nil)
out = []
out << "# #{comment}".white.dark.italic if comment
- out << "#{command}" if command
- out << "#{echo}" if echo
- out << "#{result}" if result
+ out << command if command
+ out << echo if echo
+ out << result if result
out << '—'*80
end
end
end
end