We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d7a873 commit 7d96568Copy full SHA for 7d96568
compiler/src/dotty/tools/io/Path.scala
@@ -170,7 +170,7 @@ class Path private[io] (val jpath: JPath) {
170
// returns the filename without the extension.
171
def stripExtension: String = name stripSuffix ("." + extension)
172
// returns the Path with the extension.
173
- def addExtension(ext: String): Path = new Path(jpath.resolveSibling(name + "." + ext))
+ def addExtension(ext: String): Path = new Path(jpath.resolveSibling(name + ext))
174
// changes the existing extension out for a new one, or adds it
175
// if the current path has none.
176
def changeExtension(ext: String): Path =
0 commit comments