Skip to content

Commit 05ca732

Browse files
authored
Merge pull request #2 from KisaragiEffective/patch-1
Add a missing colon to ch15-03-drop.md
2 parents b2bc9a1 + 12e7a47 commit 05ca732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

second-edition/src/ch15-03-drop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Dropping CustomSmartPointer with data `my stuff`!
139139
一例は、ロックを管理するスマートポインタを使用する時です: 同じスコープの他のコードがロックを獲得できるように、
140140
ロックを解放する`drop`メソッドを強制的に走らせたくなる可能性があります。Rustは、
141141
`Drop`トレイトの`drop`メソッドを手動で呼ばせてくれません; スコープが終わる前に値を強制的にドロップさせたいなら、
142-
代わりに標準ライブラリが提供する`std::mem:drop`関数を呼ばなければなりません。
142+
代わりに標準ライブラリが提供する`std::mem::drop`関数を呼ばなければなりません。
143143

144144
<!-- If we try to call the `Drop` trait's `drop` method manually by modifying the -->
145145
<!-- `main` function in Listing 15-14, as shown in Listing 15-15, we'll get a -->

0 commit comments

Comments
 (0)