Skip to content

Commit

Permalink
Update tests/expected/function-contract/interior-mutability/whole-str…
Browse files Browse the repository at this point in the history
…uct/refcell.rs
  • Loading branch information
feliperodri committed Jul 30, 2024
1 parent 065b554 commit 19b4cbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct InteriorMutability {
#[kani::requires(unsafe{*im.x.as_ptr()} < 100)]
#[kani::modifies(&im.x)]
#[kani::ensures(|_| unsafe{*im.x.as_ptr()} < 101)]
///im is an immutable reference with interior mutability
/// `im` is an immutable reference with interior mutability
fn modify(im: &InteriorMutability) {
im.x.replace_with(|&mut old| old + 1);
}
Expand Down

0 comments on commit 19b4cbf

Please sign in to comment.