Skip to content

Commit 7a4a209

Browse files
[CodeStyle][Typos][I-1,S-1] Fix typo(inovked, Squential, accordding) (#7601)
* docs: fix typos (I-1,S-1) — 'inovked' → 'invoked' * docs: fix typo S-1 'Squential' → 'Sequential' * docs: fix second instance of S-1 'Squential' → 'Sequential' * Fixed a typo accordding -> according * Fix A-6 typo: accpetance -> acceptance (7 instances) * Rename file to fix A-6 typo: api_accpetance_criteria_cn.md -> api_acceptance_criteria_cn.md * Rename op_optimization_acceptance_criteria_cn.md to op_optimization_accpetance_criteria_cn.md and update _typos.toml * fix merge conflicts --------- Co-authored-by: ooooo <[email protected]>
1 parent 7d2b131 commit 7a4a209

File tree

12 files changed

+12
-14
lines changed

12 files changed

+12
-14
lines changed

_typos.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ Similarily = "Similarily"
3939
Simle = "Simle"
4040
Sovler = "Sovler"
4141
Successed = "Successed"
42-
accordding = "accordding"
4342
accoustic = "accoustic"
44-
accpetance = "accpetance"
4543
classfy = "classfy"
4644
contxt = "contxt"
4745
convertion = "convertion"

docs/design/modules/net_op_design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class PlainNet : public Net {
106106
virtual Error AddBackwardOps() override;
107107

108108
protected:
109-
// Create operators accordding to `def`, will be called by the constructor.
109+
// Create operators according to `def`, will be called by the constructor.
110110
Error BuildNet(const NetDesc &def);
111111

112112
// Add a operator which is identified as `type` and has attributes described
File renamed without changes.

docs/dev_guides/api_contributing_guides/api_contributing_guides_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ API 设计文档的目的是为了社区开发者更容易的参与开源项目
7373
", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
7474
"2、API 英文文档", "- `API 文档书写规范 <https://github.com/PaddlePaddle/docs/wiki/%E9%A3%9E%E6%A1%A8API%E6%96%87%E6%A1%A3%E4%B9%A6%E5%86%99%E8%A7%84%E8%8C%83>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
7575
"3、API 中文文档", "- `API 文档书写规范 <https://github.com/PaddlePaddle/docs/wiki/%E9%A3%9E%E6%A1%A8API%E6%96%87%E6%A1%A3%E4%B9%A6%E5%86%99%E8%A7%84%E8%8C%83>`_", "`Github 飞桨文档仓库 <https://github.com/PaddlePaddle/docs>`_"
76-
"4、API 单测代码", "- `API 验收标准 <./api_accpetance_criteria_cn.html>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
76+
"4、API 单测代码", "- `API 验收标准 <./api_acceptance_criteria_cn.html>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
7777

7878

7979
当开发者完成以上代码设计后,需要将代码提交至 `Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_ ,并根据 `本地开发指南 <https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/dev_guides/git_guides/local_dev_guide_cn.html>`_ 提交 PR、准备接受社区的评审。
@@ -108,4 +108,4 @@ API 设计文档的目的是为了社区开发者更容易的参与开源项目
108108
auto_parallel_op_cn.md
109109
api_design_guidelines_standard_cn.md
110110
api_docs_guidelines_cn.md
111-
api_accpetance_criteria_cn.md
111+
api_acceptance_criteria_cn.md

docs/dev_guides/api_contributing_guides/new_cpp_op_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ class TestTraceOp(OpTest):
990990

991991
Python API 也需要编写相关的单测进行测试,详见 [开发 API Python 端](new_python_api_cn.html)
992992

993-
其他有关单元测试添加的注意事项请参考 [Op 开发手册](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index)[API 单测开发及验收规范](api_accpetance_criteria_cn.html)
993+
其他有关单元测试添加的注意事项请参考 [Op 开发手册](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index)[API 单测开发及验收规范](api_acceptance_criteria_cn.html)
994994

995995
### 6.3 运行单元测试
996996

docs/dev_guides/api_contributing_guides/new_python_api_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ from .tensor.math import trace
324324

325325
**(2)Python API 单测开发及验收规范**
326326

327-
请遵循飞桨的 [API 单测开发及验收规范](api_accpetance_criteria_cn.html),需提前阅读。
327+
请遵循飞桨的 [API 单测开发及验收规范](api_acceptance_criteria_cn.html),需提前阅读。
328328

329329
> 特别注意:单元测试要求新增代码单元测试行覆盖率达到 90%,可在 [CI 测试](../git_guides/paddle_ci_manual_cn.html) 的 PR-CI-Coverage 测试项中查看覆盖率。
330330
@@ -509,6 +509,6 @@ Paddle 编译过程中,对于 Python 代码的处理方式是,先把它们
509509

510510
- [Op 开发手册(Operator Development Manual)](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index)
511511
- [API 的设计和命名规范](api_docs_guidelines_cn.html)
512-
- [API 单测开发及验收规范](api_accpetance_criteria_cn.html)
512+
- [API 单测开发及验收规范](api_acceptance_criteria_cn.html)
513513
- [文档贡献指南](../docs_contributing_guides_cn.html)
514514
- [API 文档书写规范](api_docs_guidelines_cn.html)

docs/dev_guides/api_contributing_guides/read_before_contributing_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646

4747
- [代码风格规范](../git_guides/codestyle_check_guide_cn.html)
4848
- [API 设计和命名规范](api_design_guidelines_standard_cn.html)
49-
- [API 单元测试及验收规范](api_accpetance_criteria_cn.html)
49+
- [API 单元测试及验收规范](api_acceptance_criteria_cn.html)
5050
- [Paddle CI 测试详解](../git_guides/paddle_ci_manual_cn.html)

docs/dev_guides/custom_device_docs/device_api_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ C_Status (*deinit_device)(const C_Device device)
5050

5151
### Description
5252

53-
It finalizes the designated device, and deallocate resources allocated to all devices. The API is inovked during the exit. If not implemented, it will not be inovked and it is invoked before finalization.
53+
It finalizes the designated device, and deallocate resources allocated to all devices. The API is invoked during the exit. If not implemented, it will not be invoked and it is invoked before finalization.
5454

5555
### Parameter
5656

docs/dev_guides/op_optimization/op_optimization_contributing_guides_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
- `C++ OP 开发指南 <../api_contributing_guides/new_cpp_op_cn.html>`_
6767
- `OP Benchmark 使用指南 <https://github.com/PaddlePaddle/benchmark/blob/master/api>`_
6868
- `算子性能优化 优化方法 <./op_optimization_method_introduction_cn.html>`_
69-
- `算子性能优化 验收规范 <./op_optimization_accpetance_criteria_cn.html>`_
69+
- `算子性能优化 验收规范 <./op_optimization_acceptance_criteria_cn.html>`_
7070
", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
7171

7272

@@ -98,5 +98,5 @@
9898
:hidden:
9999

100100
op_optimization_method_introduction_cn.md
101-
op_optimization_accpetance_criteria_cn.md
101+
op_optimization_acceptance_criteria_cn.md
102102
kernel_primitive_api/index_cn.rst

0 commit comments

Comments
 (0)