about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/counters.rs
diff options
context:
space:
mode:
authorbaitcode <batiyiv@gmail.com>2024-03-14 18:58:23 +0000
committerbaitcode <batiyiv@gmail.com>2024-03-14 18:58:23 +0000
commit07e0182fd3276bb09081a67dbd6cb69910f14413 (patch)
tree105ee2164143f04181190071ac98b10ffdae03b2 /compiler/rustc_mir_transform/src/coverage/counters.rs
parentfe6157522848604562f83084154274c545fe3a27 (diff)
downloadrust-07e0182fd3276bb09081a67dbd6cb69910f14413.tar.gz
rust-07e0182fd3276bb09081a67dbd6cb69910f14413.zip
Fix minor documentation issue. Code outside the test would fail. Seek documentation clearly states that negative indexes will cause error.
Just making the code in the example to return Result::Ok, instead of Result::Error.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions