Skip to content

ch04-02: 参照の借用定義を最新原文に合わせて修正 #278

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

Open
wants to merge 2 commits into
base: master-ja
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ order to give back ownership, since we never had ownership.
所有権をもらわないので、所有権を返す目的で値を返す必要はありません。

<!--
We call having references as function parameters *borrowing*. As in real life,
if a person owns something, you can borrow it from them. When you’re done, you
have to give it back.
We call the action of creating a reference *borrowing*. As in real life,
if a person owns something, you can borrow it from them. When you’re done, you
have to give it back. You don’t own it.
-->

関数の引数に参照を取ることを*借用*と呼びます。現実生活のように、誰かが何かを所有していたら、
参照を作成する行為を*借用*と呼びます。現実生活のように、誰かが何かを所有していたら、
それを借りることができます。用が済んだら、返さなきゃいけないわけです。

<!--
Expand Down