diff options
| author | Ibraheem Ahmed <ibrah1440@gmail.com> | 2021-07-28 16:22:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-28 16:22:34 -0400 |
| commit | 2d8b6e34765994a4b0d3bc68a0ed950a16083baa (patch) | |
| tree | 82d5b81a8110c9d676444b9c4a79cf23bf2f3ab6 | |
| parent | a28109a7679fbb254ca0962865a8b32b91ddbbd9 (diff) | |
| download | rust-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.rs | 2 |
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")) } } |
