Skip to content

Commit 6e37f39

Browse files
committed
Fix minor error with splitLeft
1 parent 514b82b commit 6e37f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/util/StringOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ trait StringOps {
5555
else Some(str take idx, str drop (if (doDropIndex) idx + 1 else idx))
5656

5757
def splitLeft(str: String, ch: Char): Option[(String, String)] = {
58-
splitAt(str, str.indexOf(' '), true)
58+
splitAt(str, str.indexOf(ch), true)
5959
}
6060

6161
/** Returns a string meaning "n elements".

0 commit comments

Comments
 (0)