about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-08-04 15:20:57 +0200
committerGitHub <noreply@github.com>2025-08-04 15:20:57 +0200
commita13caaae3e87d9084a16f023e91880dd2ef0bc09 (patch)
treead7f71f36fed97f65204d8a1f8c594c8ac1d2df8 /compiler/rustc_span
parent788845811e076df8edceccd49e174d2b3ec4e71d (diff)
parent682a6e17e4dcc02944b00834f11e7cdd7067ebd1 (diff)
Merge pull request #2533 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/hygiene.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
index 97d1d9c2d2a..19494ffc37e 100644
--- a/compiler/rustc_span/src/hygiene.rs
+++ b/compiler/rustc_span/src/hygiene.rs
@@ -768,7 +768,9 @@ impl SyntaxContext {
     ///
     /// ```rust
     /// #![feature(decl_macro)]
-    /// mod foo { pub fn f() {} } // `f`'s `SyntaxContext` is empty.
+    /// mod foo {
+    ///     pub fn f() {} // `f`'s `SyntaxContext` is empty.
+    /// }
     /// m!(f);
     /// macro m($f:ident) {
     ///     mod bar {