Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8db57c2

Browse files
joboetRalfJung
andauthoredJun 27, 2024
core: improve comment
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent f6fdef3 commit 8db57c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/src/fmt/rt.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ pub(super) enum Flag {
6868
#[derive(Copy, Clone)]
6969
enum ArgumentType<'a> {
7070
Placeholder {
71-
// INVARIANT: if `formatter` had type `fn(&T, _) -> _` then `value`
72-
// was derived from a `&T` with lifetime `'a`.
71+
// INVARIANT: `formatter` has type `fn(&T, _) -> _` for some `T`, and `value`
72+
// was derived from a `&'a T`.
7373
value: NonNull<()>,
7474
formatter: unsafe fn(NonNull<()>, &mut Formatter<'_>) -> Result,
7575
_lifetime: PhantomData<&'a ()>,

0 commit comments

Comments
 (0)
Failed to load comments.