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

Conversation

fuddt
Copy link

@fuddt fuddt commented Jul 4, 2025

Closes #241

背景

  • 既存訳では「関数の引数に参照を取ることを借用と呼びます」とあり、
    あたかも「関数の引数限定」で借用を定義しているように誤解を招きやすい。
  • 現在の英語原文は以下のように更新されており、
    「参照を作成する操作全般を borrowing と呼ぶ」という趣旨に変わっている。
-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.

変更内容

  1. 日本語訳を以下のように修正
    • 旧: 関数の引数に参照を取ることを借用と呼びます。
    • 新: 参照を作成する操作を借用と呼びます。
  2. 英文コメント部も最新版に更新。また原文の “You don’t own it.” を追加

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.

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