Skip to content

Update borrow.md #178

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

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Update borrow.md #178

merged 1 commit into from
Feb 7, 2024

Conversation

fake-rick
Copy link
Contributor

No description provided.

@YangFong
Copy link
Member

YangFong commented Jan 8, 2024

@fake-rick
Copy link
Contributor Author

我的理解是boxed_i32变量将所有权交给了eat_box_i32函数的参数boxed_i32,并在eat_box_i32退出时销毁的boxed_i32变量。译文中使用的eat_i32以及官方文档中使用的eat_box在示例代码的其他位置并为出现。所以可能指代的应该是eat_box_i32函数。

@YangFong YangFong merged commit 7e0d242 into rust-lang-cn:master Feb 7, 2024
@YangFong
Copy link
Member

YangFong commented Feb 7, 2024

已修正:rust-lang/rust-by-example#1814

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