Skip to content

std::net::UdpSocket documentation about returned data is misleading #24925

Closed
@frewsxcv

Description

@frewsxcv

/// Sends data on the socket to the given address. Returns nothing on
/// success.

Returns nothing on success.

Considering the return type is Result<usize, Error>, it doesn't seem like 'nothing' is an option

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