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/unsafecell.rs
  • Loading branch information
feliperodri committed Jul 30, 2024
1 parent aaf64ed commit 172839f
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.get()} < 100)]
#[kani::modifies(im.x.get())]
#[kani::ensures(|_| unsafe{*im.x.get()} < 101)]
///im is an immutable reference with interior mutability
/// `im` is an immutable reference with interior mutability
fn modify(im: &InteriorMutability) {
unsafe { *im.x.get() += 1 }
}
Expand Down

0 comments on commit 172839f

Please sign in to comment.