Permalink
Browse files

fix sample method interpretation of completions argument

  • Loading branch information...
1 parent 04efcd1 commit 41eb26ae1fd91ec21a8f0f2823e53b35e05b6e54 @harrah harrah committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 util/complete/Parser.scala
View
2 util/complete/Parser.scala
@@ -284,7 +284,7 @@ trait ParserMain
}
def sample(str: String, parser: Parser[_], completions: Boolean = false): Unit =
- if(completions) sampleParse(str, parser) else sampleCompletions(str, parser)
+ if(completions) sampleCompletions(str, parser) else sampleParse(str, parser)
def sampleParse(str: String, parser: Parser[_]): Unit =
parse(str, parser) match {
case Left(msg) => println(msg)

0 comments on commit 41eb26a

Please sign in to comment.