Skip to content

Commit adf2998

Browse files
committed
Update README
1 parent 7dfdf74 commit adf2998

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ which generates a `xxxBlocking` function.
322322

323323
```Kotlin
324324
class Cat {
325-
@JvmBLocking
325+
@JvmBlocking
326326
suspend fun meow() {
327327
// ...
328328
}
@@ -356,7 +356,7 @@ which generates a `xxxAsync` function.
356356

357357
```Kotlin
358358
class Cat {
359-
@JvmBLocking
359+
@JvmBlocking
360360
suspend fun meow(): String = "Meow!"
361361

362362
// Generated:
@@ -494,7 +494,7 @@ First, let's agree that the following properties should be included in the annot
494494
- `asProperty`: Make the generated function a property.
495495
Can be used in cases where the original function has no arguments.
496496
```Kotlin
497-
@JBlock
497+
@JBlock(asProperty = true)
498498
suspend fun value(): Int
499499

500500
// Generated:

README_CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ class Foo {
129129

130130
若版本小于等于 `0.9.0`,可参考以下对照表:
131131

132-
| Kotlin 版本 | 插件版本 |
133-
|---------------|------------------------|
134-
| `2.0.0` | `0.8.0-beta1` ~ `0.9.0` |
135-
| `1.9.22` | `0.7.0-beta1` |
136-
| `1.9.21` | `0.6.0` |
137-
| `1.9.10` | `0.5.1` |
138-
| `1.9.0` | `0.5.0` |
139-
| `1.8.21` | `0.3.1` ~ `0.4.0` |
132+
| Kotlin 版本 | 插件版本 |
133+
|-----------|-------------------------|
134+
| `2.0.0` | `0.8.0-beta1` ~ `0.9.0` |
135+
| `1.9.22` | `0.7.0-beta1` |
136+
| `1.9.21` | `0.6.0` |
137+
| `1.9.10` | `0.5.1` |
138+
| `1.9.0` | `0.5.0` |
139+
| `1.8.21` | `0.3.1` ~ `0.4.0` |
140140

141141
> [!note]
142142
> 未详细记录各 Kotlin 版本的编译器插件兼容性。
@@ -311,7 +311,7 @@ suspendTransformPlugin {
311311

312312
```Kotlin
313313
class Cat {
314-
@JvmBLocking
314+
@JvmBlocking
315315
suspend fun meow() {
316316
// ...
317317
}
@@ -343,7 +343,7 @@ suspendTransformPlugin {
343343

344344
```Kotlin
345345
class Cat {
346-
@JvmBLocking
346+
@JvmBlocking
347347
suspend fun meow(): String = "Meow!"
348348

349349
// 生成:

0 commit comments

Comments
 (0)