Skip to content

Commit d1b95e7

Browse files
committed
feat:更新readme
1 parent 4379548 commit d1b95e7

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,15 @@ implementation 'io.github.azirzsk:function-call-processor:1.0.0'
4141

4242
```java
4343
public class Calculator {
44-
@Function(name = "add",
45-
description = "将两个数字相加")
46-
public int add(@Property(description = "第一个数字") int a,
47-
@Property(description = "第二个数字") int b) {
44+
@Function(desc = "将两个数字相加")
45+
public int add(@Property(desc = "第一个数字") int a,
46+
@Property(desc = "第二个数字") int b) {
4847
return a + b;
4948
}
5049

51-
@Function(name = "multiply",
52-
description = "将两个数字相乘")
53-
public int multiply(@Property(description = "第一个数字") int x,
54-
@Property(description = "第二个数字") int y) {
50+
@Function(desc = "将两个数字相乘")
51+
public int multiply(@Property(desc = "第一个数字") int x,
52+
@Property(desc = "第二个数字") int y) {
5553
return x * y;
5654
}
5755
}

0 commit comments

Comments
 (0)