Skip to content

Commit

Permalink
Gave a Source method a more precise name.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulp committed Jun 27, 2009
1 parent 7d92d6c commit 2c31c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/scala/io/Source.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/xml/parsing/ExternalSources.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.