Skip to content

doc: mark str representation example as "don't actually do this" #33637

Closed
@birkenfeld

Description

@birkenfeld

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions