doc: mark str representation example as "don't actually do this" #33637
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
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/7The example code should probably be flagged as "don't do this in practice, this is just to show the innards".
The text was updated successfully, but these errors were encountered: