Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Qinheping Hu <[email protected]>
  • Loading branch information
celinval and qinheping authored Nov 15, 2024
1 parent ae455cf commit d79d2ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kani-compiler/src/kani_middle/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ impl LayoutOf {

/// Return the unsized tail of the type if this is an unsized type.
///
/// For foreign types, return None.
/// For unsized types, this should return either a slice, a string slice, a dynamic type.
/// For foreign types, return `None`.
/// For unsized types, this should return either a slice, a string slice, a dynamic type,
/// or a foreign type.
/// For other types, this function will return `None`.
pub fn unsized_tail(&self) -> Option<Ty> {
if self.layout.is_unsized() {
Expand All @@ -68,7 +69,7 @@ impl LayoutOf {
}
}

/// Return the type of the elements of the array or slice at the unsized tail of this type.
/// Return the type of the elements of the slice or `str` at the unsized tail of this type.
///
/// For sized types and trait unsized type, this function will return `None`.
pub fn unsized_tail_elem_ty(&self) -> Option<Ty> {
Expand Down

0 comments on commit d79d2ee

Please sign in to comment.