Skip to content

Commit

Permalink
Merge pull request #1 from yhuai/master
Browse files Browse the repository at this point in the history
add explicit result type to the overloaded sideBySide
  • Loading branch information
yhuai committed Dec 22, 2013
2 parents 8c60cc0 + cbe1ca1 commit 80039cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/util/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package object util {
file
}

def sideBySide(left: String, right: String) = sideBySide(left.split("\n"), right.split("\n"))
def sideBySide(left: String, right: String): Seq[String] = sideBySide(left.split("\n"), right.split("\n"))

def sideBySide(left: Seq[String], right: Seq[String]): Seq[String] = {
val maxLeftSize = left.map(_.size).max
Expand Down

0 comments on commit 80039cc

Please sign in to comment.