Skip to content

Commit 011dd91

Browse files
committed
Fix typos in definitions.md
1 parent 29ea87a commit 011dd91

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/reference/koin-annotations/definitions.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Definitions with Annotations
33
---
44

55

6-
Koin Annotations allow to declare the same kind of definitions as the regular Koin DSL, but with annotations. Just tag your class with the needed annotation, and it will generate everything for you!
6+
Koin Annotations allows to declare the same kind of definitions as the regular Koin DSL, but with annotations. Just tag your class with the needed annotation, and it will generate everything for you!
77

88
For example the equivalent to `single { MyComponent(get()) }` DSL declaration, is just done by tagging with `@Single` like this:
99

@@ -20,9 +20,9 @@ Koin Annotations keep the same semantic as the Koin DSL. You can declare your co
2020

2121
For Scopes, check the [Declaring Scopes](/docs/reference/koin-core/scopes.md) section.
2222

23-
### Generate Compose ViewModel for Kotlin Multipaltform (since 1.4.0)
23+
### Generate Compose ViewModel for Kotlin Multiplatform (since 1.4.0)
2424

25-
The `@KoinViewModel` annotation can be used to generate either Android or Compsoe KMP ViewModel. To generate `viewModel` Koin definition with `org.koin.compose.viewmodel.dsl.viewModel` instead of regular `org.koin.androidx.viewmodel.dsl.viewModel`, you need to activate the `KOIN_USE_COMPOSE_VIEWMODEL` option:
25+
The `@KoinViewModel` annotation can be used to generate either Android or Compose KMP ViewModel. To generate `viewModel` Koin definition with `org.koin.compose.viewmodel.dsl.viewModel` instead of regular `org.koin.androidx.viewmodel.dsl.viewModel`, you need to activate the `KOIN_USE_COMPOSE_VIEWMODEL` option:
2626

2727
```groovy
2828
ksp {
@@ -35,7 +35,7 @@ ksp {
3535
:::
3636

3737
:::note
38-
Koin 4.0 should bring merge of those 2 ViewModel DSL into only one, as the ViewModel type argiument comes from teh same library
38+
Koin 4.0 should bring merge of those 2 ViewModel DSL into only one, as the ViewModel type argument comes from the same library
3939
:::
4040

4141
## Automatic or Specific Binding
@@ -205,4 +205,4 @@ public class ComponentWithProps(
205205
}
206206
```
207207

208-
The generated DSL equivalent will be `factory { ComponentWithProps(getProperty("id", ComponentWithProps.DEFAAULT_ID)) }`
208+
The generated DSL equivalent will be `factory { ComponentWithProps(getProperty("id", ComponentWithProps.DEFAULT_ID)) }`

0 commit comments

Comments
 (0)