Skip to content

Commit 6474a3f

Browse files
ncihnegn0xE282B0
authored andcommitted
docs(example): fix typo in upgrade example (hyperium#3479)
Signed-off-by: Sven Pfennig <[email protected]>
1 parent 0c0fb1b commit 6474a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/upgrades.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async fn server_upgraded_io(upgraded: Upgraded) -> Result<()> {
3737

3838
// and now write back the server 'foobar' protocol's
3939
// response...
40-
upgraded.write_all(b"barr=foo").await?;
40+
upgraded.write_all(b"bar=foo").await?;
4141
println!("server[foobar] sent");
4242
Ok(())
4343
}

0 commit comments

Comments
 (0)