Skip to content

Commit

Permalink
core: improve comment
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
joboet and RalfJung authored Jun 27, 2024
1 parent f6fdef3 commit 8db57c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/fmt/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ pub(super) enum Flag {
#[derive(Copy, Clone)]
enum ArgumentType<'a> {
Placeholder {
// INVARIANT: if `formatter` had type `fn(&T, _) -> _` then `value`
// was derived from a `&T` with lifetime `'a`.
// INVARIANT: `formatter` has type `fn(&T, _) -> _` for some `T`, and `value`
// was derived from a `&'a T`.
value: NonNull<()>,
formatter: unsafe fn(NonNull<()>, &mut Formatter<'_>) -> Result,
_lifetime: PhantomData<&'a ()>,
Expand Down

0 comments on commit 8db57c2

Please sign in to comment.