mirror of https://github.com/rust-lang/rfcs.git
fix code example
Co-authored-by: Travis Cross <tc@traviscross.com>
This commit is contained in:
parent
5b2d6902d4
commit
1f31c7b6f9
|
@ -105,7 +105,7 @@ impl !Unpin for S {}
|
|||
|
||||
impl S {
|
||||
pub fn new() -> Self {
|
||||
S { state: 0, data: 42, ptr_to_data: ptr::null_mut() }
|
||||
S { state: 0, data: 0, ptr_to_data: ptr::null_mut() }
|
||||
}
|
||||
|
||||
fn poll(self: Pin<&mut Self>) -> Poll<()> {
|
||||
|
|
Loading…
Reference in New Issue