Skip to content

Commit 17241d3

Browse files
gschulzeeholk
authored andcommitted
Change 'F' to 'Future' in panic messages
1 parent 24e9184 commit 17241d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl<F, const STACK_SIZE: usize> AssertFits<F, STACK_SIZE> {
306306
const ASSERT: () = {
307307
if !StackFuture::<F, STACK_SIZE>::has_space_for::<F>() {
308308
concat_panic!(
309-
"F is too large: ",
309+
"Future is too large: ",
310310
StackFuture::<F, STACK_SIZE>::required_space::<F>(),
311311
" > ",
312312
STACK_SIZE
@@ -315,7 +315,7 @@ impl<F, const STACK_SIZE: usize> AssertFits<F, STACK_SIZE> {
315315

316316
if !StackFuture::<F, STACK_SIZE>::has_alignment_for::<F>() {
317317
concat_panic!(
318-
"F has incompatible alignment: ",
318+
"Future has incompatible alignment: ",
319319
align_of::<F>(),
320320
" > ",
321321
align_of::<StackFuture::<F, STACK_SIZE>>()

0 commit comments

Comments
 (0)