Skip to content

Commit 3dd55dd

Browse files
committed
Change apostrophe in error message
I'm not sure if this was intentionally left with `'` instead of ` in the closing apostrophe, but just in case it was not I made the PR. Scala CLA has been signed.
1 parent 4d9cb2c commit 3dd55dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/scala/util/parsing/combinator/Parsers.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ trait Parsers {
565565
* @return a `tParser` that succeeds if `e` is the next available input.
566566
*/
567567

568-
implicit def accept(e: Elem): Parser[Elem] = acceptIf(_ == e)("`"+e+"' expected but " + _ + " found")
568+
implicit def accept(e: Elem): Parser[Elem] = acceptIf(_ == e)("'"+e+"' expected but " + _ + " found")
569569

570570
/** A parser that matches only the given list of element `es`.
571571
*

src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class PackratParsersTest {
122122
val failure = parseResult.asInstanceOf[Failure]
123123
assertEquals(expectedFailureMsg, failure.msg)
124124
}
125-
assertFailure("``b'' expected but `c' found", "a a a a b b b c c c c")
125+
assertFailure("'`b'' expected but `c' found", "a a a a b b b c c c c")
126126
assertFailure("end of input", "a a a a b b b b c c c")
127127
}
128128

0 commit comments

Comments
 (0)