Skip to content

Documentation for fetch_update talks about success and failure orderings, but the arguments are for fetch and store orderings #89116

Open
@nagisa

Description

@nagisa

They may be the same but when you read

pub fn fetch_update<F>(&self, set_order: Ordering, fetch_order: Ordering, f: F) -> Result<usize, usize> where F: FnMut(usize) -> Option<usize>, 

(note set/fetch_order), the two paragraphs that talk about the operation ordering don't make all that much sense. We should either rename the arguments accordingly or adjust the documentation to talk about set and fetch orderings instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions