From 15d97063c4eba1c46353d3e7720b244813ee3d9a Mon Sep 17 00:00:00 2001 From: ncihnegn Date: Thu, 14 Dec 2023 08:26:38 -0800 Subject: [PATCH] docs(example): fix typo in upgrade example (#3479) --- examples/upgrades.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/upgrades.rs b/examples/upgrades.rs index 6a3afcd482..ba02c15aca 100644 --- a/examples/upgrades.rs +++ b/examples/upgrades.rs @@ -37,7 +37,7 @@ async fn server_upgraded_io(upgraded: Upgraded) -> Result<()> { // and now write back the server 'foobar' protocol's // response... - upgraded.write_all(b"barr=foo").await?; + upgraded.write_all(b"bar=foo").await?; println!("server[foobar] sent"); Ok(()) }