From cf2b875cc49eb6adff02ba9e13374e0b82275ca2 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 23 Jun 2017 22:57:37 -0700 Subject: [PATCH] Corrected: input function now takes abstract string --- lib/io-extra.jl | 2 +- lib/story.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/io-extra.jl b/lib/io-extra.jl index 3fb12ae..03dee59 100644 --- a/lib/io-extra.jl +++ b/lib/io-extra.jl @@ -1,4 +1,4 @@ -function input(prompt::String="")::String +function input(prompt::AbstractString="") print(prompt) return chomp(readline()) end \ No newline at end of file diff --git a/lib/story.jl b/lib/story.jl index e69de29..40905a5 100644 --- a/lib/story.jl +++ b/lib/story.jl @@ -0,0 +1 @@ +include("../lib/io-extra.jl") \ No newline at end of file