File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,9 @@ Rustはこれが安全でないだろうと知っているのです!
273273<!-- that provides shared ownership. It has some runtime bookkeeping that keeps track -->
274274<!-- of the number of references to it, hence the "reference count" part of its name. -->
275275そのため、1つの値に対して2つ以上の所有権を持った参照を持てるような型が必要です。
276- 通常、この用途には ` Rc<T> ` を使います。これは所有権の共有を提供するリファレンスカウントの型です。
277- 実行時にある程度の管理コストを払って、値への参照の数をカウントします。なのでリファレンスカウントなのです。
276+ 通常、この用途には ` Rc<T> ` を使います。これは所有権の共有を提供する参照カウントの型です。
277+ 実行時にある程度の管理コストを払って、値への参照の数をカウントします。
278+ なので名前に参照カウント(reference count) が付いているのです。
278279
279280<!-- Calling `clone()` on an `Rc<T>` will return a new owned reference and bump the -->
280281<!-- internal reference count. We create one of these for each thread: -->
@@ -334,7 +335,7 @@ fn main() {
334335
335336<!-- In essence, `Arc<T>` is a type that lets us share ownership of data _across -->
336337<!-- threads_. -->
337- 要点は ` Arc<T> ` は _ スレッド間_ で所有権を共有可能にする方ということです 。
338+ 要点は ` Arc<T> ` は _ スレッド間_ で所有権を共有可能にする型ということです 。
338339
339340``` ignore
340341use std::thread;
You can’t perform that action at this time.
0 commit comments