about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/reference-links.rs
diff options
context:
space:
mode:
authorErik Jensen <erikjensen@rkjnsn.net>2021-02-28 12:57:38 -0800
committerGitHub <noreply@github.com>2021-02-28 12:57:38 -0800
commit2616960be2493e1cdba95cc297bb2dbd520ad7c8 (patch)
tree51f6275c36d5f30b47ac07dace5150c98e30399d /src/test/rustdoc-ui/reference-links.rs
parent573a697a6197abaad5a2d7208dbf1bbc77f4dcf3 (diff)
downloadrust-2616960be2493e1cdba95cc297bb2dbd520ad7c8.tar.gz
rust-2616960be2493e1cdba95cc297bb2dbd520ad7c8.zip
Clarify that SyncOnceCell::set blocks.
Reading the discussion of this feature, I gained the mistaken impression that neither `set` nor `get` blocked, and thus calling `get` immediately after `set` was not guaranteed to succeed. It turns out that `set` *does* block, guaranteeing that the cell contains a value once `set` returns. This change updates the documentation to state that explicitly.
Diffstat (limited to 'src/test/rustdoc-ui/reference-links.rs')
0 files changed, 0 insertions, 0 deletions