Skip to content

Commit 6940d9c

Browse files
committed
Translate a code comment
1 parent b1d5999 commit 6940d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phantom-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ that:
132132
use std::marker;
133133
134134
struct Vec<T> {
135-
data: *const T, // *const for covariance!
135+
data: *const T, // 変性を得るため *const です!
136136
len: usize,
137137
cap: usize,
138138
_marker: marker::PhantomData<T>,

0 commit comments

Comments
 (0)