Skip to content

Commit d07a1dc

Browse files
committed
bindings/kotlin: Fix types in docs
1 parent b94c89f commit d07a1dc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bindings/kotlin/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ val session = Session.create(configDir)
5656

5757
🗈 Note there can be multiple `Session`s per `Service`. This is useful for example when the app
5858
consist of multiple components that all need to access the same set of Ouisync repositories. In
59-
this example we keep things simple and use only once `Session`.
59+
this example we keep things simple and use only one `Session`.
6060

61-
62-
Then we can configure the networking. Start by setting up the network listeners. We use the QUIC protocol here. Ouisync supports both QUIC and TCP but QUIC generally works better. You can also enable both. Binding to `0.0.0.0` makes it listen on all interfaces and port `0` means bind to a random available port.
61+
Then we can configure the networking. Start by setting up the network listeners. We use the QUIC
62+
protocol here. Ouisync supports both QUIC and TCP but QUIC generally works better. You can also
63+
enable both. Binding to `0.0.0.0` makes it listen on all interfaces and port `0` means bind to a
64+
random available port.
6365

6466
```kotlin
6567
session.bindNetwork(listOf("quic:0.0.0.0:0"))
@@ -76,7 +78,7 @@ To create repositories, we first need to specify the directory (or directories)
7678
repository data will be stored:
7779

7880
```kotlin
79-
session.setStorDirs(listOf(context.getDir("ouisync-repos").getPath()))
81+
session.setStoreDirs(listOf(context.getDir("ouisync-repos").getPath()))
8082
```
8183

8284
Then we can actually create the repository:

0 commit comments

Comments
 (0)