Skip to content

Incorrect documentation on read_and_drop #31599

Closed
@Thiez

Description

@Thiez

The documentation of the unstable function core::ptr::read_and_drop makes a reference to read_and_zero, but this function does not exist (anymore?). Expressing the semantics of read_and_drop in terms of something that does not exist is unhelpful.

The problem seems to be located here.

I imagine the fix would involve traveling back in time until before read_and_zero was removed and copying its documentation, after correcting for the differences between it and the read_and_drop function.

@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