Skip to content

Commit c0aefc1

Browse files
committed
fix
1 parent 520e8e3 commit c0aefc1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/common/src/files/Paths.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public expect val SystemPathSeparator: Char
7575
public expect fun Path(path: String): Path
7676

7777
/**
78-
* Returns Path for the given [base] path concatenated with [parts] using [files.SystemPathSeparator].
78+
* Returns Path for the given [base] path concatenated with [parts] using [SystemPathSeparator].
7979
*/
8080
public fun Path(base: String, vararg parts: String): Path {
8181
// Parameter name has to be specified explicitly to overcome https://youtrack.jetbrains.com/issue/KT-22520
@@ -91,7 +91,7 @@ public fun Path(base: String, vararg parts: String): Path {
9191
}
9292

9393
/**
94-
* Returns Path for the given [base] path concatenated with [parts] using [files.SystemPathSeparator].
94+
* Returns Path for the given [base] path concatenated with [parts] using [SystemPathSeparator].
9595
*/
9696
public fun Path(base: Path, vararg parts: String): Path {
9797
return Path(base.toString(), *parts)

core/common/test/files/SmokeFileTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class SmokeFileTest {
186186
@Test
187187
fun pathParent() {
188188
val p = Path(SystemPathSeparator.toString(), "a", "b", "c")
189-
assertEquals(constructAbsolutePath("a", "b").also { println(it) }, p.parent?.toString())
189+
assertEquals(constructAbsolutePath("a", "b"), p.parent?.toString())
190190
assertEquals(constructAbsolutePath("a"), p.parent?.parent?.toString())
191191
assertEquals(constructAbsolutePath(), p.parent?.parent?.parent?.toString())
192192
assertNull(p.parent?.parent?.parent?.parent)

0 commit comments

Comments
 (0)