Closed
Description
The example here led to some confusion how to get a slice from a Vec<u8>
: https://users.rust-lang.org/t/checking-for-incoming-data-on-tcpstream/5814/7
The example code should probably be flagged as "don't do this in practice, this is just to show the innards".