Skip to content

Probably misleading example for std::net::UdpSocket in docs #30507

Closed
@defyrlt

Description

@defyrlt

In the example for std::net::UdpSocket drop is used:

drop(socket); // close the socket

This is redundant and might mislead users that they're supposed to explicitly drop the socket. I think this should be removed.

cc @steveklabnik ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions