fix code example

Co-authored-by: Travis Cross <tc@traviscross.com>
This commit is contained in:
Ralf Jung 2024-05-03 08:28:09 +02:00 committed by GitHub
parent 5b2d6902d4
commit 1f31c7b6f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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<()> {