Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LiYing2010
Copy link
Contributor

No description provided.

@LiYing2010 LiYing2010 requested a review from a team as a code owner February 23, 2025 13:06
Comment on lines -454 to -455
<a name="differences"/>

Copy link
Contributor Author

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` | |
Copy link
Contributor Author

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

Comment on lines +219 to +225
`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()
}
```
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Comment on lines +80 to +84
// 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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant