Skip to content

docs: pub is a declaration label, not a type - #216

Merged
dslsdzc merged 1 commit into
developfrom
docs-pub-label
Oct 27, 2026
Merged

dslsdzc merged 1 commit into
developfrom
docs-pub-label

Conversation

@dslsdzc

@dslsdzc dslsdzc commented Oct 26, 2026

Copy link
Copy Markdown
Owner

修正文档表述:pub 是声明导出标签,不进入类型身份、布局或 ABI。结构体字段不是独立导出项,字段可见性随结构体声明(struct S, pub: 导出类型及其布局,struct S: 仅库内可见)。删除“字段级 pub 待裁决”的错误说法。

`pub` never enters type identity, layout, or ABI. Struct fields are not
separate exports; they follow the struct declaration. Reword the syntax and
semantics docs accordingly and drop the "field-level pub is pending" note.
@dslsdzc
dslsdzc merged commit 3de6707 into develop Oct 27, 2026
4 checks passed
@dslsdzc
dslsdzc deleted the docs-pub-label branch October 27, 2026 00:12
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.

1 participant