From b254cf87a87aca8a448496a418d6c702b0ba2e77 Mon Sep 17 00:00:00 2001 From: Callum Beardsmore Date: Wed, 4 Dec 2024 13:33:40 +0000 Subject: [PATCH] clearer comment --- src/udp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp.rs b/src/udp.rs index bc40f4d..797b5e7 100644 --- a/src/udp.rs +++ b/src/udp.rs @@ -282,7 +282,7 @@ pub fn get_info(target: (&str, u16)) -> Result { bytes.iter().take_while(|&&b| b != 0).map(|&b| b as char).collect() } else if platform == "TwinCAT/BSD" { - //the data after is always garbage + // The following data is TwinCAT/BSD in bytes. But we know the platform from 0. "".into() } else { iter::from_fn(|| bytes.read_u16::().ok())