Skip to content

Commit

Permalink
chore: review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-pavlov committed Oct 13, 2023
1 parent fa26f71 commit 7a71c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/topics/multiplatform/multiplatform-connect-to-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ similarly create and pass an instance of `IOSPlatform`. These entry points don't
applications, but this is where you can call the specific functionality of your shared module.

Providing the right implementations with expected and actual functions or directly through entry points works well for
simple scenarios. However, if you use dependency injection framework in your project,
simple scenarios. However, if you use a dependency injection framework in your project,
we recommend you use it in simple cases as well for consistency.

### Dependency injection framework
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/multiplatform/multiplatform-expect-actual.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ actual enum class Department { IT, HR, Sales, Legal }
actual enum class Department { IT, HR, Sales, Marketing }
```
However, matching `Department` in common code can never be exhaustive now. Therefore, the compiler requires you
to handle all potential additional cases.
However, in this case, these extra constants in platform source sets won't match with those in common code.
Therefore, the compiler requires you to handle all additional cases.

So, the function that implements the `when` construction on `Department` requires an `else` clause:

Expand Down

0 comments on commit 7a71c85

Please sign in to comment.