Skip to content

Commit 2a053c7

Browse files
committed
Update doc comments.
1 parent d6ae459 commit 2a053c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/proc_macro/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -543,13 +543,13 @@ impl Span {
543543
/// The path to the source file in which this span occurs, for display purposes.
544544
///
545545
/// This might not correspond to a valid file system path.
546-
/// It might be remapped, or might be an artificial path such as `"<macro expansion>"`.
546+
/// It might be remapped (e.g. `"/src/lib.rs"`) or an artificial path (e.g. `"<command line>"`).
547547
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
548548
pub fn file(&self) -> String {
549549
self.0.file()
550550
}
551551

552-
/// The path to the source file in which this span occurs on disk.
552+
/// The path to the source file in which this span occurs on the local file system.
553553
///
554554
/// This is the actual path on disk. It is unaffected by path remapping.
555555
///

0 commit comments

Comments
 (0)