Skip to content

Add a pub use example#2000

Open
XiaoPengMei wants to merge 1 commit intorust-lang:masterfrom
XiaoPengMei:docs/add-pub-use-example-1234
Open

Add a pub use example#2000
XiaoPengMei wants to merge 1 commit intorust-lang:masterfrom
XiaoPengMei:docs/add-pub-use-example-1234

Conversation

@XiaoPengMei
Copy link
Copy Markdown

Closes #1234

Summary

  • add a small pub use example to the use declaration chapter
  • show how a module can re-export an item through its public interface

Validation

  • mdbook build
  • mdbook test

Notes

  • AI-assisted: I used Sisyphus to help draft and validate this documentation change, and I reviewed the final diff before submission.

Show how a module can re-export an item with pub use so the use declaration chapter covers that common pattern directly.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 27, 2026

r? @marioidival

rustbot has assigned @marioidival.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @marioidival

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.

Add a example for pub use.

3 participants