Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
  • Loading branch information
artemagvanian and zhassan-aws authored Jul 10, 2024
1 parent fb07b8a commit 853ed24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/kani/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ pub fn is_initialized<T: ?Sized>(_ptr: *const T) -> bool {
kani_intrinsic()
}

/// A helper to to assert `is_initialized` to use it as a part of other predicates.
/// A helper to assert `is_initialized` to use it as a part of other predicates.
fn assert_is_initialized<T: ?Sized>(ptr: *const T) -> bool {
crate::assert(is_initialized(ptr), "Undefined Behavior: Reading from an uninitialized pointer");
true
Expand Down
2 changes: 1 addition & 1 deletion library/kani_core/src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ macro_rules! kani_mem {
kani_intrinsic()
}

/// A helper to to assert `is_initialized` to use it as a part of other predicates.
/// A helper to assert `is_initialized` to use it as a part of other predicates.
fn assert_is_initialized<T: ?Sized>(ptr: *const T) -> bool {
assert!(
is_initialized(ptr),
Expand Down

0 comments on commit 853ed24

Please sign in to comment.