fix: update example

This commit is contained in:
skkeye 2025-02-10 00:58:17 -05:00 committed by Ulf Lilleengen
parent 7b35265465
commit 9b178facc9

View File

@ -117,7 +117,7 @@ async fn main(spawner: Spawner) {
// Recieve and log the data of the reply
socket
.recv_with(|(buf, addr)| {
.recv_from_with(|(buf, addr)| {
let packet = Icmpv4Packet::new_checked(buf).unwrap();
info!(
"Recieved {:?} from {} in {}ms",