diff --git a/crates/typst/src/model/reference.rs b/crates/typst/src/model/reference.rs index 0cdb5e300..511ca3d9a 100644 --- a/crates/typst/src/model/reference.rs +++ b/crates/typst/src/model/reference.rs @@ -77,10 +77,10 @@ use crate::text::TextElem; /// let el = it.element /// if el != none and el.func() == eq { /// // Override equation references. -/// numbering( +/// link(el.location(),numbering( /// el.numbering, /// ..counter(eq).at(el.location()) -/// ) +/// )) /// } else { /// // Other references as usual. /// it