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

ch04-02「関数の引数に参照を取ることを借用と呼びます」について #241

Open
aoyama-val opened this issue Dec 22, 2023 · 0 comments

Comments

@aoyama-val
Copy link

関数の引数に参照を取ることを借用と呼びます。
https://doc.rust-jp.rs/book-ja/ch04-02-references-and-borrowing.html

原文は

We call the action of creating a reference borrowing.
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html
(参照を作ることを借用と呼びます)

となっています。
実際、関数の引数だけでなく

let r = &a;

のようなのも借用と呼ぶので修正が必要と思います。

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

No branches or pull requests

1 participant