Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry and_modify doc #98125

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Entry and_modify doc #98125

merged 3 commits into from
Jun 16, 2022

Commits on Jun 15, 2022

  1. Add examples using add_modify to HashMap

    Updated the HashMap's documentation to include two references to
    add_modify.
    
    The first is when the `Entry` API is mentioned at the beginning. I was
    hesitant to change the "attack" example (although I believe that it is
    perfect example of where `add_modify` should be used) because both uses
    work equally, but one is more idiomatic (`add_modify`).
    
    The second is with the `entry` function that is used for the `Entry`
    API. The code example was a perfect use for `add_modify`, which is why
    it was changed to reflect that.
    SeniorMars committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    d3d22e1 View commit details
    Browse the repository at this point in the history
  2. Add examples using add_modify to btree

    Updated the btree's documentation to include two references to
    add_modify.
    
    The first is when the `Entry` API is mentioned at the beginning. With
    the same reasoning as HashMap's documentation, I thought it would best
    to keep `attack`, but show the `mana` example.
    
    The second is with the `entry` function that is used for the `Entry`
    API. The code example was a perfect use for `add_modify`, which is why
    it was changed to reflect that.
    SeniorMars committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    cec72ac View commit details
    Browse the repository at this point in the history
  3. change "1" to "c" to pass test

    Incorrectly wrote "1" twice when writing test.
    SeniorMars committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    791923a View commit details
    Browse the repository at this point in the history