Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples optimization #79

Merged
merged 3 commits into from
Feb 17, 2024
Merged

Examples optimization #79

merged 3 commits into from
Feb 17, 2024

Conversation

nighca
Copy link
Contributor

@nighca nighca commented Feb 17, 2024

  • Optimize style for <code> in docs, making it consistent with <code> in <goplus-code>
  • Omit empty docs & codes in page
  • Correct docs for Assignments

@@ -1,4 +1,5 @@
# assignment

Copy link
Contributor Author

@nighca nighca Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标题与后续注释之间预期留空行。

这里的后续注释(// = is used for assigning. The values...)与相邻的代码(var age int...)是关联的,而标题(# assignment)不应与该代码关联。“关联”意味着在排版上会展示为左右对齐展示。

下方图一为这里修改之前的渲染结果(认为“# assignment”也是对右侧代码说明的一部分),图二为修改后的渲染结果(认为“# assignment”不是对右侧代码的说明,而是单独的文档内容):

image

image

@xushiwei xushiwei merged commit 2d48e1b into goplus:main Feb 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants