summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-30 10:53:00 +0800
committerGitHub <noreply@github.com>2023-07-30 10:53:00 +0800
commit7c0030aec276b2e3b0b896ec32b556298e3dab89 (patch)
tree289d483ab6224eb9bfb1c0788fda07aa44bb74c7 /docs
parent470d9889a5d4a4dee448b956cbde3d15ab86c313 (diff)
downloadinfini-7c0030aec276b2e3b0b896ec32b556298e3dab89.tar.gz
infini-7c0030aec276b2e3b0b896ec32b556298e3dab89.zip
refactor: 修改错别字
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/Standard/what-is-rule-package.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md
index 84665c09..f5e4b0f2 100644
--- a/docs/docs/Standard/what-is-rule-package.md
+++ b/docs/docs/Standard/what-is-rule-package.md
@@ -13,7 +13,8 @@ from HydroRolicore import RuLe
class MyRule(Rule):
"""我的自定义规则包
- appniasal函数是必须实现的方法之一
+
+ check 函数是必须实现的方法之一
name属性是必须实现的属性之一,用来定义这个规则包的名字
priority是可选实现的属性之一,默认0
"""
@@ -21,7 +22,7 @@ class MyRule(Rule):
name = "我的自定义规则包"
priority = 0 # 优先级
- def ability(self):
+ def check(self):
"""检定方法
self.result 是需要检定时计算的结果,可以直接使用