about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/panic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/panic.rs b/src/libcore/panic.rs
index aa3625ac019..94181084dbc 100644
--- a/src/libcore/panic.rs
+++ b/src/libcore/panic.rs
@@ -176,9 +176,9 @@ impl fmt::Display for PanicInfo<'_> {
 ///
 /// # Comparisons
 ///
-/// Comparisons for equality and ordering are made in file, line, then column priority. Such
-/// comparisons can occasionally have surprising results. See [`Location::file`]'s documentation for
-/// more discussion.
+/// Comparisons for equality and ordering are made in file, line, then column priority.
+/// Files are compared as strings, not `Path`, which could be unexpected.
+/// See [`Location::file`]'s documentation for more discussion.
 #[lang = "panic_location"]
 #[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
 #[stable(feature = "panic_hooks", since = "1.10.0")]