Skip to content

Commit 2d8b6e3

Browse files
authored
Use backticks when referring to core::future::Ready in panic message
1 parent a28109a commit 2d8b6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/future/ready.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<T> Future for Ready<T> {
2020

2121
#[inline]
2222
fn poll(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<T> {
23-
Poll::Ready(self.0.take().expect("Ready polled after completion"))
23+
Poll::Ready(self.0.take().expect("`Ready` polled after completion"))
2424
}
2525
}
2626

0 commit comments

Comments
 (0)