Skip to content

Commit 8e7707c

Browse files
committed
fix markdown syntax
1 parent 9e96d23 commit 8e7707c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

1.6/ja/book/raw-pointers.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ other pointer types. They: -->
2222

2323
<!-- - are not guaranteed to point to valid memory and are not even
2424
guaranteed to be non-null (unlike both `Box` and `&`); -->
25-
- 有効なメモリを指していることが保証されないどころか、nullでないことも保証されない( `Box``&` では保証される)
2625
<!-- - do not have any automatic clean-up, unlike `Box`, and so require
2726
manual resource management; -->
28-
- `Box` とは異なり、自動的な後処理が一切行われないため、手動のリソース管理が必要
2927
<!-- - are plain-old-data, that is, they don't move ownership, again unlike
3028
`Box`, hence the Rust compiler cannot protect against bugs like
3129
use-after-free; -->
32-
- plain-old-dataであるため、Rustコンパイラはuse-after-freeのようなバグから保護できない
3330
<!-- - lack any form of lifetimes, unlike `&`, and so the compiler cannot
3431
reason about dangling pointers; and
3532
- have no guarantees about aliasing or mutability other than mutation
3633
not being allowed directly through a `*const T`. -->
34+
- 有効なメモリを指していることが保証されないどころか、nullでないことも保証されない( `Box``&` では保証される)
35+
- `Box` とは異なり、自動的な後処理が一切行われないため、手動のリソース管理が必要
36+
- plain-old-dataであるため、Rustコンパイラはuse-after-freeのようなバグから保護できない
3737
- `&` と異なり、ライフタイムの機能が無効化されるため、コンパイラはダングリングポインタを推論できない
3838
- また、 `*const T` を直接介した変更は拒むが、それ以外のエイリアシングやミュータビリティに関する保証はない
3939

@@ -121,6 +121,7 @@ programmer *must* guarantee this. -->
121121

122122
<!-- The recommended method for the conversion is: -->
123123
おすすめの変換の方法は以下のとおりです。
124+
124125
```rust
125126
# // explicit cast
126127
// 明示的キャスト

0 commit comments

Comments
 (0)