[Docs] Fix typos and RST markup issues in paddle.cuda API docs#7788
Merged
Echo-Nie merged 1 commit intoPaddlePaddle:developfrom Feb 28, 2026
Conversation
- Fix missing character '设' in manual_seed_cn.rst: '为当前设备置随机种子' → '为当前设备设置随机种子' - Fix stray quote and missing RST markup in device_cn.rst: 'npu:x'' → '``npu:x``' - Fix stray quote and missing RST markup in reset_peak_memory_stats_cn.rst: 'npu:x'' → '``npu:x``' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 针对 docs/api/paddle/cuda/ 下的中文 API 文档进行小范围修订,修复拼写错误与 ReStructuredText(RST)行内代码标记问题,以提升文档可读性并避免渲染异常。
Changes:
- 修复
manual_seed_cn.rst中中文描述缺字导致的语病(“置”→“设置”)。 - 修复
device_cn.rst与reset_peak_memory_stats_cn.rst中多余引号,并将示例npu:x改为 RST 行内字面量格式(npu:x)。 - 顺带统一相关句子标点后的空格表现(如 “属性。如果 …”)。
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/api/paddle/cuda/manual_seed_cn.rst | 修复中文描述缺字导致的语义不完整问题 |
| docs/api/paddle/cuda/device_cn.rst | 修复多余引号并补充 RST 行内代码标记 |
| docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst | 修复多余引号并补充 RST 行内代码标记 |
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7788.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
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 issues found in
docs/api/paddle/cuda/API documentation files.Issues Fixed
docs/api/paddle/cuda/manual_seed_cn.rst— Typo: missing character设为当前设备置随机种子为当前设备设置随机种子docs/api/paddle/cuda/device_cn.rst— Stray quote mark and missing RST inline code markup如 npu:x',如 ``npu:x``,docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst— Stray quote mark and missing RST inline code markup如 npu:x',如 ``npu:x``,Notes
'indevice_cn.rstandreset_peak_memory_stats_cn.rstappears to be a copy-paste error. The correct format uses RST double-backtick markup``npu:x``to display inline code, consistent with how it appears inmax_memory_allocated_cn.rst.设inmanual_seed_cn.rstis a character drop typo — the phrase为当前设备置随机种子is grammatically incomplete and should be为当前设备设置随机种子.