Browse files

Gave a Source method a more precise name.

  • Loading branch information...
1 parent 7d92d6c commit 2c31c03c6247d0adf5a9a83a8d779c9631b6c10c @paulp paulp committed Jun 27, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/library/scala/io/Source.scala
  2. +1 −1 src/library/scala/xml/parsing/ExternalSources.scala
View
2 src/library/scala/io/Source.scala
@@ -63,7 +63,7 @@ object Source {
/** creates Source from file with given name, setting
* its description to filename.
*/
- def fromFilename(name: String)(implicit codec: Codec = Codec.default): Source = fromFile(new JFile(name))
+ def fromPath(name: String)(implicit codec: Codec = Codec.default): Source = fromFile(new JFile(name))
/** creates <code>Source</code> from file with given file: URI
*/
View
2 src/library/scala/xml/parsing/ExternalSources.scala
@@ -76,7 +76,7 @@ trait ExternalSources { self: ExternalSources with MarkupParser with MarkupHandl
} else
fileStr = fileStr.substring(0,
fileStr.lastIndexOf(java.io.File.separator)+1)
- Source.fromFilename(fileStr + systemId)()
+ Source.fromPath(fileStr + systemId)()
}
}

0 comments on commit 2c31c03

Please sign in to comment.