Skip to content

Commit 1f31c7b

Browse files
fix code example
Co-authored-by: Travis Cross <tc@traviscross.com>
1 parent 5b2d690 commit 1f31c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-unsafe-aliased.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl !Unpin for S {}
105105

106106
impl S {
107107
pub fn new() -> Self {
108-
S { state: 0, data: 42, ptr_to_data: ptr::null_mut() }
108+
S { state: 0, data: 0, ptr_to_data: ptr::null_mut() }
109109
}
110110

111111
fn poll(self: Pin<&mut Self>) -> Poll<()> {

0 commit comments

Comments
 (0)