about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-01-16 11:58:02 +0530
committerGitHub <noreply@github.com>2020-01-16 11:58:02 +0530
commit1389caf860a7e464b66d6d67180025c598975739 (patch)
tree5dbf2f1516655527b14dcf44d7a27d19d266f987 /src/libstd
parent6b83862d09fe3cb04de50c335428b2ac5b2307ce (diff)
parent1faa05daac8069503a0ffbba735db3b259424296 (diff)
downloadrust-1389caf860a7e464b66d6d67180025c598975739.tar.gz
rust-1389caf860a7e464b66d6d67180025c598975739.zip
Rollup merge of #68096 - varkor:diagnostic-cleanup, r=Centril
Clean up some diagnostics by making them more consistent

In general:

- Diagnostic should start with a lowercase letter.
- Diagnostics should not end with a full stop.
- Ellipses contain three dots.
- Backticks should encode Rust code.

I also reworded a couple of messages to make them read more clearly.

It might be sensible to create a style guide for diagnostics, so these informal conventions are written down somewhere, after which we could audit the existing diagnostics.

r? @Centril
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/panicking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/panicking.rs b/src/libstd/panicking.rs
index bfadeafb7c7..fee7ace92ea 100644
--- a/src/libstd/panicking.rs
+++ b/src/libstd/panicking.rs
@@ -208,7 +208,7 @@ fn default_hook(info: &PanicInfo<'_>) {
                     let _ = writeln!(
                         err,
                         "note: run with `RUST_BACKTRACE=1` \
-                                           environment variable to display a backtrace."
+                                           environment variable to display a backtrace"
                     );
                 }
             }