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

Add Yoke example with closure that writes data out #4909

Merged
merged 3 commits into from
May 23, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented May 16, 2024

@sffc sffc requested review from Manishearth and a team as code owners May 16, 2024 00:13
@sffc sffc removed the request for review from a team May 16, 2024 00:13
Manishearth
Manishearth previously approved these changes May 21, 2024
@@ -148,6 +148,36 @@ where
/// assert_eq!(&**yoke.get(), "hello");
/// assert!(matches!(yoke.get(), &Cow::Borrowed(_)));
/// ```
///
/// Keep track of how many bytes were read from the buffer:
Copy link
Member

Choose a reason for hiding this comment

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

perhaps explicitly mrention that the closure can mutate local variables? Or something that motivates this example?

@robertbastian robertbastian merged commit 20a3bae into unicode-org:main May 23, 2024
30 checks passed
@sffc sffc deleted the yoke-xmp branch May 24, 2024 07:51
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.

None yet

3 participants