about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic_impls.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-16 12:21:12 +0000
committerbors <bors@rust-lang.org>2024-05-16 12:21:12 +0000
commit4a78c00e227124ff9d5ece2d493472e7325c87d3 (patch)
treeb9a6e6299f2b14da5f3ab141ea86cb1eb1e9e4d8 /compiler/rustc_errors/src/diagnostic_impls.rs
parentbf8801d36dfd28de7d3b0279b53d38593acdfd14 (diff)
parente1611aa690ccfa2e38b0041df90bca424809226d (diff)
downloadrust-4a78c00e227124ff9d5ece2d493472e7325c87d3.tar.gz
rust-4a78c00e227124ff9d5ece2d493472e7325c87d3.zip
Auto merge of #124959 - prorealize:update-result-documentation, r=joboet
Refactor examples and enhance documentation in result.rs

- Replaced `map` with `map_err` in the error handling example for correctness
- Reordered example code to improve readability and logical flow
- Added assertions to examples to demonstrate expected outcomes
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs')
0 files changed, 0 insertions, 0 deletions