[Docs] Fix punctuation and typo issues in API docs (floor, irfft, full)#7808
Merged
Echo-Nie merged 1 commit intoPaddlePaddle:developfrom Mar 1, 2026
Conversation
- floor_cn.rst: Replace English commas with Chinese enumeration marks (、) in data type list - fft/irfft_cn.rst: Replace English commas with Chinese enumeration marks (、) in norm values list - full_cn.rst: Fix typo 'dytpe' -> 'dtype' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7808.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 聚焦于修复 PaddlePaddle 中文 API 文档(Sphinx / .rst)中的文档规范问题,主要是中文语境下的标点符号规范与参数说明拼写错误,以提升 API 文档一致性与可读性。
Changes:
- 修复
paddle.full参数说明中的拼写错误:dytpe→dtype - 将
paddle.floor参数说明中数据类型列表的英文逗号分隔改为中文顿号分隔 - 将
paddle.fft.irfft参数说明中norm取值列举的英文逗号分隔改为中文顿号分隔
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/api/paddle/full_cn.rst | 更正参数说明中的 dtype 拼写错误,避免误导读者。 |
| docs/api/paddle/floor_cn.rst | 将中文文档中的类型枚举分隔符改为中文顿号,符合中文标点规范。 |
| docs/api/paddle/fft/irfft_cn.rst | 将 norm 选项列举分隔符改为中文顿号,保持中文文档风格一致。 |
cutetocute
approved these changes
Mar 1, 2026
Echo-Nie
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Fixed documentation standard violations in 3 API docs files:
1.
docs/api/paddle/floor_cn.rst,used in Chinese text when listing data types、to be consistent with other API docs (e.g.,flip_cn.rst,flatten_cn.rst)float32, float64, float16, bfloat16, uint8, int8, int16, int32, int64float32、float64、float16、bfloat16、uint8、int8、int16、int32、int642.
docs/api/paddle/fft/irfft_cn.rst,used between norm value options in Chinese text、to be consistent with similar files (e.g.,irfftn_cn.rst)"forward", "backward", "ortho""forward"、"backward"、"ortho"3.
docs/api/paddle/full_cn.rstdytpeinstead ofdtypedtypeStandards Reference
Per the documentation standards: