-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor fix for typo, indent, link, comment #4714
base: master
Are you sure you want to change the base?
Conversation
<a name="differences"/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI
the content which refer this link was deleted in commit ad3ebe2
so I think this link itself can be deleted to
@@ -74,7 +74,6 @@ For more information, see the corresponding sections below. | |||
| [`compilerOpts`](#pass-compiler-and-linker-options) | Compiler options that the cinterop tool passes to the C compiler. | | |||
| [`linkerOpts`](#pass-compiler-and-linker-options) | Linker options that the cinterop tool passes to the linker. | | |||
| [`excludedFunctions`](#ignore-specific-functions) | A space-separated list of function names that should be ignored. | | |||
| `excludedMacros` | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI
looks like this property is commented out in line 91
so I think it should be deleted here
`person` or `person.department` is `null`, the function is not called. Here's the equivalent of the same safe call but with the `if` conditional: | ||
|
||
```kotlin | ||
if (person != null && person.department != null) { | ||
person.department.head = managersPool.getManager() | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI
I moved the Here's the equivalent ......
part here
I think it's better
@@ -27,7 +27,7 @@ See [Update to a new release](releases.md#update-to-a-new-kotlin-version) for de | |||
Kotlin 2.0.20 begins to introduce changes to improve consistency in data classes and replace the Experimental context | |||
receivers feature. | |||
|
|||
### Data class copy function to have the same visibility as constructor | |||
### Data class copy function will have the same visibility as constructor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI
it is will have ...
in line 8, so I changed it here too
// Branch with only the primary condition. Calls `feedDog()` when `animal` is `Dog` | ||
is Animal.Dog -> animal.feedDog() | ||
// Branch with both primary and guard conditions. Returns `feedCat()` when `Animal` is `Cat` and is not `mouseHunter` | ||
// Branch with both primary and guard conditions. Calls `feedCat()` when `animal` is `Cat` and is not `mouseHunter` | ||
is Animal.Cat if !animal.mouseHunter -> animal.feedCat() | ||
// Returns "Unknown animal" if none of the above conditions match | ||
// Prints "Unknown animal" if none of the above conditions match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JFYI
I think it should be Calls
and Prints
instead of Returns
here
just like in control-flow.md
No description provided.