Skip to content

Commit 0c0c9d5

Browse files
committed
消し忘れた段落を削除
1 parent 2f70d34 commit 0c0c9d5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,6 @@ to make an item like a function or struct private, you put it in a module.
155155
Rustでは、すべての要素(関数、メソッド、構造体、enum、モジュール、そして定数)はデフォルトでは親モジュールに対して非公開です。
156156
関数や構造体などの要素を非公開にしたければ、モジュールの中に置いてください。
157157

158-
<!--
159-
Modules aren’t useful only for organizing your code. They also define Rust’s
160-
*privacy boundary*: the line that encapsulates the implementation details
161-
external code isn’t allowed to know about, call, or rely on. So, if you want to
162-
make an item like a function or struct private, you put it in a module.
163-
-->
164-
モジュールはコードの整理に役立つだけではありません。
165-
モジュールはRustの *プライバシー境界* も定義します。これは、外部のコードが知ったり、呼び出したり、依存したりしてはいけない実装の詳細をカプセル化する線引きです。
166-
なので、関数や構造体といった要素を非公開にしたければ、モジュールに入れればよいのです。
167-
168158
<!--
169159
Items in a parent module can’t use the private items inside child modules, but
170160
items in child modules can use the items in their ancestor modules. This is

0 commit comments

Comments
 (0)