From e331ac7af0ffd02aa6f15436d46aa3e3d9aa78fa Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 3 Oct 2025 11:55:33 -0500 Subject: [PATCH 1/2] fix(css): Correctly specify grammar-literal-bg --- theme/reference.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/reference.css b/theme/reference.css index 3e16b4cd9b..24960c03c0 100644 --- a/theme/reference.css +++ b/theme/reference.css @@ -15,7 +15,7 @@ --alert-warning-color: #9a6700; --alert-edition-color: #1a7f37; --alert-example-color: #8250df; - --gramar-literal-bg: #fafafa; + --grammar-literal-bg: #fafafa; } .rust { --alert-note-color: #023b95; @@ -40,7 +40,7 @@ --alert-warning-color: #f0b72f; --alert-edition-color: #2bd853; --alert-example-color: #d3abff; - --gramar-literal-bg: #191f26; + --grammar-literal-bg: #191f26; } .coal, .navy, .ayu { --grammar-comment-color: lch(from var(--quote-bg) calc(l + 50) 0 0); From eb8242334fa5b57de9fca99b332aa771038acc94 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 3 Oct 2025 11:57:30 -0500 Subject: [PATCH 2/2] docs: Fix spelling --- mdbook-spec/src/grammar/parser.rs | 2 +- src/const_eval.md | 2 +- src/inline-assembly.md | 2 +- theme/reference.css | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mdbook-spec/src/grammar/parser.rs b/mdbook-spec/src/grammar/parser.rs index c2d6fd546b..39bba771e3 100644 --- a/mdbook-spec/src/grammar/parser.rs +++ b/mdbook-spec/src/grammar/parser.rs @@ -382,7 +382,7 @@ impl Parser<'_> { xs.push(x); self.index += 1; } - _ => bail!(self, "expected 4 uppercase hexidecimal digits after `U+`"), + _ => bail!(self, "expected 4 uppercase hexadecimal digits after `U+`"), } } Ok(ExpressionKind::Unicode(String::from_utf8(xs).unwrap())) diff --git a/src/const_eval.md b/src/const_eval.md index 2c0407e529..7cb85dc266 100644 --- a/src/const_eval.md +++ b/src/const_eval.md @@ -150,7 +150,7 @@ r[const-eval.const-expr.borrows] > > ```rust > // The borrow is of a variable local to the initializer, therefore - > // this place expresssion is transient. + > // this place expression is transient. > const C: () = { let mut x = 0; _ = &mut x; }; > ``` > diff --git a/src/inline-assembly.md b/src/inline-assembly.md index f64d9bb1bb..6178c006c6 100644 --- a/src/inline-assembly.md +++ b/src/inline-assembly.md @@ -1355,7 +1355,7 @@ r[asm.rules.x86-df] r[asm.rules.x86-x87] - On x86, the x87 floating-point register stack must remain unchanged unless all of the `st([0-7])` registers have been marked as clobbered with `out("st(0)") _, out("st(1)") _, ...`. - - If all x87 registers are clobbered then the x87 register stack is guaranteed to be empty upon entering the assembly code. Assembly code must ensure that the x87 register stack is also empty when exiting the asssembly code. + - If all x87 registers are clobbered then the x87 register stack is guaranteed to be empty upon entering the assembly code. Assembly code must ensure that the x87 register stack is also empty when exiting the assembly code. ```rust # #[cfg(target_arch = "x86_64")] diff --git a/theme/reference.css b/theme/reference.css index 24960c03c0..eb1760d6e0 100644 --- a/theme/reference.css +++ b/theme/reference.css @@ -260,7 +260,7 @@ dfn { padding-left: 0; padding-right: 0; } -/* required to accomodate above, somehow... */ +/* required to accommodate above, somehow... */ #menu-bar { margin-left: 0; } @@ -315,7 +315,7 @@ hr { } /* This is quite dumb, ugh. - CSS doesn't allow margin colapsing between grid items and anything else + CSS doesn't allow margin collapsing between grid items and anything else (src: ), which means that the margins of li's children are not collapsed with ul's margins, adding too much margins.