mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Render docs for abilities, tuples, and as
This commit is contained in:
parent
0fea1ec227
commit
9fe08cafd0
3 changed files with 199 additions and 53 deletions
|
@ -38,6 +38,13 @@ impl<'a, T> Spaced<'a, T> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn item(&self) -> &T {
|
||||
match self {
|
||||
Spaced::Item(answer) => answer,
|
||||
Spaced::SpaceBefore(next, _spaces) | Spaced::SpaceAfter(next, _spaces) => next.item(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T: Debug> Debug for Spaced<'a, T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue