summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-30 09:59:58 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-30 09:59:58 +0200
commit65f11dc364ece630bcecf6ef53b75697f07553a8 (patch)
tree4c849d16b0a065864491933f626c209d22a57c44 /library
parent82b893ec0ec547519e92100e864b6421ca01520b (diff)
Minor improvements
Diffstat (limited to 'library')
-rw-r--r--library/src/meta/counter.rs4
-rw-r--r--library/src/meta/reference.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/library/src/meta/counter.rs b/library/src/meta/counter.rs
index 4825bc65..9a223b32 100644
--- a/library/src/meta/counter.rs
+++ b/library/src/meta/counter.rs
@@ -634,8 +634,8 @@ impl Show for DisplayElem {
.numbering()
.or_else(|| {
let CounterKey::Selector(Selector::Elem(func, _)) = counter.0 else {
- return None;
- };
+ return None;
+ };
if func == HeadingElem::func() {
HeadingElem::numbering_in(styles)
diff --git a/library/src/meta/reference.rs b/library/src/meta/reference.rs
index c39f8ca0..5bd04431 100644
--- a/library/src/meta/reference.rs
+++ b/library/src/meta/reference.rs
@@ -189,7 +189,7 @@ impl Show for RefElem {
)
})
.hint(eco_format!(
- "you can enable heading numbering with `#set {}(numbering: \"1.\")`?",
+ "you can enable heading numbering with `#set {}(numbering: \"1.\")`",
elem.func().name()
))
.at(span)?;