Skip to content

Commit 6582a95

Browse files
authored
Merge pull request #81 from egulias/patch-1
Change apostrophe in error message
2 parents 4d9cb2c + ac7c33f commit 6582a95

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ language: scala
33
before_install:
44
- cat /etc/hosts # optionally check the content *before*
55
- sudo hostname "$(hostname | cut -c1-63)"
6-
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
6+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
7+
- sudo mv /tmp/hosts /etc/hosts
78
- cat /etc/hosts # optionally check the content *after*
89

910
env:

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)