Skip to content

Commit 8800b03

Browse files
committed
udpate according to review
1 parent ea09846 commit 8800b03

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* [Leaking](leaking.md)
3636
* [Unwinding](unwinding.md)
3737
* [例外安全性](exception-safety.md)
38-
* [ポイズニング](poisoning.md)
38+
* [Poisoning](poisoning.md)
3939
* [Concurrency](concurrency.md)
4040
* [Races](races.md)
4141
* [Send and Sync](send-and-sync.md)

src/poisoning.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!--# Poisoning-->
2-
#ポイズニング
1+
# Poisoning
32

43
<!--
54
Although all unsafe code *must* ensure it has minimal exception safety, not all
@@ -39,9 +38,9 @@ panic. Any future attempts to lock the Mutex will return an `Err` or panic.
3938
こういった型は、panicに直面した際に、意図的に自分自身を**poison**する可能性があり
4039
ます。poisoningは自体は特に何か別の事態を引き起こすわけではありません。一般的に
4140
通常の手続きの継続を止めるべきであることを表しています。よく知られた例として
42-
標準ライブラリのMutex型があります。この型は対応するMutexGuards(`lock()`の返り値
43-
の型)が、panicによってdropされた際に自分自身をpoisonします。以後Mutexをlockしよう
44-
とすると`Err`を返すかpanicします。
41+
標準ライブラリのMutex型があります。この型は対応するMutexGuards(lockを取得した際に
42+
返るもの)が、panicによってdropされた際に自分自身をpoisonします。以後Mutexをlock
43+
しようとすると`Err`を返すかpanicします。
4544

4645
<!--
4746
Mutex poisons not for true safety in the sense that Rust normally cares about. It

0 commit comments

Comments
 (0)