-
Notifications
You must be signed in to change notification settings - Fork 4.2k
minor fix for typo, indent, link, and sample code, etc #4993
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
Conversation
@@ -100,7 +100,7 @@ You can enable all the supported ES2015 features at once by adding the `es2015` | |||
|
|||
```kotlin | |||
tasks.withType<KotlinJsCompile>().configureEach { | |||
kotlinOptions { | |||
compilerOptions { |
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
IMO:
kotlinOptions
is deprecated, should use compilerOptions
instead
If you wanted to create a new class which implements the `Drawable` interface, and have the same behavior with `Circle` | ||
class **except** for the value of the `color` property, you still need to add implementations for each member function | ||
of the `Drawable` interface: | ||
|
||
```kotlin | ||
class RedCircle(val circle: Circle) : Circle { | ||
|
||
class RedCircle(val circle: Circle) : Drawable { |
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
IMO:
if class RedCircle
extends class Circle
, it will inherit all the member functions, which means there will be no necessary to implement func draw()
and resize()
so I think the sample code here will confuse the readers, and I suggest to change it
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.
You're right that this example could be improved. I'm covering this in #5026 Can you revert the changes in this file since I'll replace it very soon?
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.
OK
I reverted this change
@@ -37,7 +37,7 @@ Create a project using the Kotlin Multiplatform wizard: | |||
> | |||
{style="note"} | |||
|
|||
2. In **composeApp** | **Tasks** | **kotlin browser**, select and run the **wasmJsBrowserDevelopmentRun** task. | |||
2. In **wasmdemo** | **Tasks** | **kotlin browser**, select and run the **wasmJsBrowserDevelopmentRun** task. |
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 demo project name was changed to WasmDemo
, but this content still use the old name composeApp
docs/topics/whatsnew/whatsnew22.md
Outdated
@@ -235,7 +235,7 @@ This feature tells the compiler to apply the annotation to all relevant parts of | |||
|
|||
* **`get`**: the getter method. | |||
|
|||
* **`set_param`**: the parameter of the setter method, if the property is defined as `var`. | |||
* **`setparam`**: the parameter of the setter method, if the property is defined as `var`. |
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.
IMO
I think setparam
is the correct use-site target name
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.
Yes, it is! We fixed the KEEP as well. Kotlin/KEEP@568ecac
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.
I merged your changes from master
branch
@sarahhaggarty |
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.
Thanks for your suggestions @LiYing2010 !
Can you rebase your branch onto the latest on master to pick up the changes we made in annotations.md
? And please take a look at my suggestions for changes. Let me know if you have any questions!
@@ -63,7 +63,7 @@ In the following table, there are the minimum and maximum **fully supported** ve | |||
| 1.7.0–1.7.10 | 6.7.1–7.0.2 | 3.4.3–7.0.2 | | |||
| 1.6.20–1.6.21 | 6.1.1–7.0.2 | 3.4.3–7.0.2 | | |||
|
|||
> *Kotlin 2.0.20–2.0.21 and Kotlin 2.1.0–2.1.10 are fully compatible with Gradle up to 8.6. | |||
> Kotlin 2.0.20–2.0.21 and Kotlin 2.1.0–2.1.10 are fully compatible with Gradle up to 8.6. |
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.
> Kotlin 2.0.20–2.0.21 and Kotlin 2.1.0–2.1.10 are fully compatible with Gradle up to 8.6. | |
> *Kotlin 2.0.20–2.0.21 and Kotlin 2.1.0–2.1.10 are fully compatible with Gradle up to 8.6. |
This asterisk refers to an entry in the table.
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.
OK
I reverted this change
docs/topics/whatsnew/whatsnew22.md
Outdated
@@ -235,7 +235,7 @@ This feature tells the compiler to apply the annotation to all relevant parts of | |||
|
|||
* **`get`**: the getter method. | |||
|
|||
* **`set_param`**: the parameter of the setter method, if the property is defined as `var`. | |||
* **`setparam`**: the parameter of the setter method, if the property is defined as `var`. |
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.
Yes, it is! We fixed the KEEP as well. Kotlin/KEEP@568ecac
docs/topics/whatsnew/whatsnew22.md
Outdated
// Applies @Email to `param`, `property`, `field`, | ||
// `get`, and `setparam` (if var) |
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.
// Applies @Email to `param`, `property`, `field`, | |
// `get`, and `setparam` (if var) | |
// Applies @Email to param, property, field, | |
// get, and setparam (if var) |
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.
We don't use backticks in code comments. I fixed this in the original doc.
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.
I merged your changes from master
branch
docs/topics/whatsnew/whatsnew22.md
Outdated
// Applies @Email to `property`, `field`, and `get` | ||
// (no `param` since it's not in the 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.
// Applies @Email to `property`, `field`, and `get` | |
// (no `param` since it's not in the constructor) | |
// Applies @Email to property, field, and get | |
// (no param since it's not in the 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.
We don't use backticks in code comments. I fixed this in the original doc.
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.
I merged your changes from master
branch
If you wanted to create a new class which implements the `Drawable` interface, and have the same behavior with `Circle` | ||
class **except** for the value of the `color` property, you still need to add implementations for each member function | ||
of the `Drawable` interface: | ||
|
||
```kotlin | ||
class RedCircle(val circle: Circle) : Circle { | ||
|
||
class RedCircle(val circle: Circle) : Drawable { |
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.
You're right that this example could be improved. I'm covering this in #5026 Can you revert the changes in this file since I'll replace it very soon?
# Conflicts: # docs/topics/annotations.md # docs/topics/whatsnew/whatsnew22.md
Thanks again for your contribution @LiYing2010 ! 🚀 |
Change List