Skip to content

Commit 696e633

Browse files
author
masahiro-sakurai-1_stargate
committed
fix: bibliography style
1 parent 21a9c52 commit 696e633

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/coding-guidelines/types-and-traits/gui_0cuTYG8RVYjg.rst.inc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
Similar to C, unions allow multiple fields to occupy the same memory.
3131
Unlike enumeration types, unions do not track which field is currently active.
3232
You must ensure that when a field is read that
33-
the underlying bytes are valid for that field's type [RUST-REF-UNION]_.
33+
the underlying bytes are valid for that field's type :cite:`gui_0cuTYG8RVYjg:RUST-REF-UNION`.
3434
3535
Every type has a *validity invariant* — a set of constraints that all values of
36-
that type must satisfy [UCG-VALIDITY]_.
36+
that type must satisfy :cite:`gui_0cuTYG8RVYjg:UCG-VALIDITY`.
3737
Reading a union field performs a *typed read*,
3838
which asserts that the bytes are valid for the target type.
3939
@@ -274,21 +274,17 @@
274274
}
275275
276276
.. bibliography::
277-
:id: bib_UnionFieldValidity
277+
:id: bib_WNCi5njUWLuZ
278278
:status: draft
279279
280280
.. list-table::
281281
:header-rows: 0
282282
:widths: auto
283283
:class: bibliography-table
284284
285-
* - .. [RUST-REF-UNION]
286-
- | The Rust Project Developers. "Rust Reference: Unions."
287-
| *The Rust Reference*, n.d.
288-
| https://doc.rust-lang.org/reference/items/unions.html.
285+
* - :bibentry:`gui_0cuTYG8RVYjg:RUST-REF-UNION`
286+
- The Rust Reference. "Unions." https://doc.rust-lang.org/reference/items/unions.html.
289287
290-
* - .. [UCG-VALIDITY]
291-
- | Rust Unsafe Code Guidelines Working Group. "Validity and Safety Invariant."
292-
| *Rust Unsafe Code Guidelines*, n.d.
293-
| https://rust-lang.github.io/unsafe-code-guidelines/glossary.html#validity-and-safety-invariant.
288+
* - :bibentry:`gui_0cuTYG8RVYjg:UCG-VALIDITY`
289+
- Rust Unsafe Code Guidelines. "Validity and Safety Invariant." https://rust-lang.github.io/unsafe-code-guidelines/glossary.html#validity-and-safety-invariant.
294290

0 commit comments

Comments
 (0)