about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIbraheem Ahmed <ibrah1440@gmail.com>2021-07-28 16:22:34 -0400
committerGitHub <noreply@github.com>2021-07-28 16:22:34 -0400
commit2d8b6e34765994a4b0d3bc68a0ed950a16083baa (patch)
tree82d5b81a8110c9d676444b9c4a79cf23bf2f3ab6
parenta28109a7679fbb254ca0962865a8b32b91ddbbd9 (diff)
downloadrust-2d8b6e34765994a4b0d3bc68a0ed950a16083baa.tar.gz
rust-2d8b6e34765994a4b0d3bc68a0ed950a16083baa.zip
Use backticks when referring to `core::future::Ready` in panic message
-rw-r--r--library/core/src/future/ready.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/future/ready.rs b/library/core/src/future/ready.rs
index b0c7fbb1d7a..cc905d288f9 100644
--- a/library/core/src/future/ready.rs
+++ b/library/core/src/future/ready.rs
@@ -20,7 +20,7 @@ impl<T> Future for Ready<T> {
 
     #[inline]
     fn poll(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<T> {
-        Poll::Ready(self.0.take().expect("Ready polled after completion"))
+        Poll::Ready(self.0.take().expect("`Ready` polled after completion"))
     }
 }