format references for automatic links

Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
Signed-off-by: Brian Hicks <brian@brianthicks.com>
This commit is contained in:
Brian Hicks 2022-09-20 07:48:38 -05:00 committed by GitHub
parent c6235f8c76
commit 9d6b27e23c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,9 +11,9 @@ use core::{
/// We do some things in this data structure that only make sense because the /// We do some things in this data structure that only make sense because the
/// memory is managed in Roc: /// memory is managed in Roc:
/// ///
/// 1. We don't implement an `IntoIterator` that iterates over owned values, /// 1. We don't implement an [`IntoIterator`] that iterates over owned values,
/// since Roc owns the memory, not rust. /// since Roc owns the memory, not rust.
/// 2. We use a union for `RocDictItem` instead of just a struct. See the /// 2. We use a union for [`RocDictItem`] instead of just a struct. See the
/// comment on that data structure for why. /// comment on that data structure for why.
#[derive(Default, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Default, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct RocDict<K, V>(RocList<RocDictItem<K, V>>); pub struct RocDict<K, V>(RocList<RocDictItem<K, V>>);