Skip to content

Commit 62a974d

Browse files
fzhinkinjeffdgr8
andauthored
Fixed typos
Co-authored-by: Jeff Lockhart <[email protected]>
1 parent 54a0724 commit 62a974d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ tasks.withType<DokkaTaskPartial>().configureEach {
6262
}
6363

6464
animalsniffer {
65-
annotation = "kotlinx.io.files.AnimalSnifferIngore"
65+
annotation = "kotlinx.io.files.AnimalSnifferIgnore"
6666
}

core/common/src/files/FileSystem.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public sealed interface FileSystem {
104104

105105
/**
106106
* Return [FileMetadata] associated with a file or directory represented by the [path].
107-
* If there is not such file or directory, or it's impossible to fetch metadata,
108-
* the `null` is returned.
107+
* If there is no such file or directory, or it's impossible to fetch metadata,
108+
* `null` is returned.
109109
*
110110
* @param path the path to get the metadata for.
111111
*/
@@ -120,8 +120,10 @@ public sealed interface FileSystem {
120120
}
121121

122122
internal abstract class SystemFileSystemImpl : FileSystem {
123+
@Suppress("DEPRECATION")
123124
override fun read(path: Path): Source = path.source()
124125

126+
@Suppress("DEPRECATION")
125127
override fun write(path: Path): Sink = path.sink()
126128
}
127129

core/common/src/files/Paths.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public expect class Path {
2424
public val parent: Path?
2525

2626
/**
27-
* Returns a name of file or directory represented by this path.
27+
* Returns the name of the file or directory represented by this path.
2828
*
2929
* How the name is resolved is platform-specific.
3030
*
31-
* In general, one may expect that for path like `Path("home", "Downloads", "file.txt")`
31+
* In general, one may expect that for a path like `Path("home", "Downloads", "file.txt")`
3232
* the name is `file.txt`.
3333
*/
3434
public val name: String
3535

3636
/**
37-
* Returns `true` is this path is absolute, `false` otherwise.
37+
* Returns `true` if this path is absolute, `false` otherwise.
3838
*
39-
* How the name is resolved is platform-specific.
39+
* How an absolute path is resolved is platform-specific.
4040
*/
4141
public val isAbsolute: Boolean
4242

core/jvm/src/files/FileSystemJvm.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import kotlinx.io.IOException
99
import java.nio.file.Files
1010
import java.nio.file.StandardCopyOption
1111

12-
internal annotation class AnimalSnifferIngore()
12+
internal annotation class AnimalSnifferIgnore()
1313

1414
private interface Mover {
1515
fun move(source: Path, destination: Path)
1616
}
1717

1818
private class NioMover : Mover {
19-
@AnimalSnifferIngore
19+
@AnimalSnifferIgnore
2020
override fun move(source: Path, destination: Path) {
2121
if (!source.file.exists()) {
2222
throw FileNotFoundException("Source file does not exist: ${source.file}")

0 commit comments

Comments
 (0)