Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chorman0773 committed Sep 22, 2024
1 parent a4081da commit bda9a06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Function calls pass parameters and return values between the caller and the call
> These are not fully documented here currently.
> [!WARNING]
> Two types that are ABI Compatible may not allow the same set of values (e.g. [`*const T`] and [`core::ptr::NonNull<T>`]).
> Two types that are ABI Compatible may not allow the same set of values (e.g. [`*const T`] and [`core::ptr::NonNull<T>`]).
> If an invalid value is passed as a parameter or returned from a function, the result is immediate undefined behaviour, even if the parameter or return value is never used.
> For example, passing a null pointer to a function that accepts a `NonNull<i32>` parameter via `fn(*const i32)` function pointer caused undefined behaviour.
Expand Down Expand Up @@ -188,7 +188,6 @@ A call to a function `f` via a function item or function pointer with a given si

The behavior of a call that is not valid is undefined.


> [!NOTE]
> The ABI tag `extern "Rust"` is the default when the `extern` keyword is not used (either to declare the function within an [`extern` block], or as a [function qualifier][extern functions]). Thus it is safe to call most functions that use simd types.
Expand Down

0 comments on commit bda9a06

Please sign in to comment.