about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorLukas Bergdoll <lukas.bergdoll@gmail.com>2024-02-28 11:51:27 +0100
committerLukas Bergdoll <lukas.bergdoll@gmail.com>2024-02-28 11:51:27 +0100
commite4781115f2a5e50d60673d5c64d49182fc190247 (patch)
tree2b9b08abb3b283a1bb3bdefc2d819b3dd3128378 /tests/rustdoc-js-std/parser-errors.js
parentef324565d071c6d7e2477a195648549e33d6a465 (diff)
downloadrust-e4781115f2a5e50d60673d5c64d49182fc190247.tar.gz
rust-e4781115f2a5e50d60673d5c64d49182fc190247.zip
Improve assert_matches! documentation
This new documentation tries to avoid to limit the impact of the
conceptual pitfall, that the if guard relaxes the constraint, when
really it tightens it. This is achieved by changing the text and
examples. The previous documentation also chose a rather weird and
non-representative example for the if guard, that made it needlessly
complicated to understand.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions