about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorKarlWithK <cjh16@rice.edu>2022-06-15 01:41:56 -0500
committerKarlWithK <cjh16@rice.edu>2022-06-15 01:41:56 -0500
commitd3d22e1e664d33519ddc1b4bbc00cc93eed3e7be (patch)
tree549ecf918ea7b04ab810bee22205bb5754313ffa /src/librustdoc/html/static/js/source-script.js
parent2d1e0750792529248ed6f11061940c7203d668c9 (diff)
downloadrust-d3d22e1e664d33519ddc1b4bbc00cc93eed3e7be.tar.gz
rust-d3d22e1e664d33519ddc1b4bbc00cc93eed3e7be.zip
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.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions