Skip to content

Commit 4475ec8

Browse files
committed
Fix misleading comment about type_is_pod
1 parent 56ec9cb commit 4475ec8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/middle/ty.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,8 @@ fn type_is_signed(cx: ctxt, ty: t) -> bool {
11591159
}
11601160
}
11611161

1162-
// Whether a type is Plain Old Data (i.e. can be safely memmoved).
1162+
// Whether a type is Plain Old Data -- meaning it does not contain pointers
1163+
// that the cycle collector might care about.
11631164
fn type_is_pod(cx: ctxt, ty: t) -> bool {
11641165
let result = true;
11651166
alt struct(cx, ty) {

0 commit comments

Comments
 (0)