docs: Fix cargo-doc errors
This commit is contained in:
@@ -130,7 +130,7 @@ pub enum BindKind {
|
|||||||
pub struct Make<A: Annotation = Span>(pub Anno<Expr<A>, A>, pub Vec<MakeArm<A>>);
|
pub struct Make<A: Annotation = Span>(pub Anno<Expr<A>, A>, pub Vec<MakeArm<A>>);
|
||||||
|
|
||||||
/// A single "arm" of a make expression
|
/// A single "arm" of a make expression
|
||||||
/// ```ignore
|
/// ```text
|
||||||
/// Identifier (':' Expr)?
|
/// Identifier (':' Expr)?
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
@@ -157,10 +157,10 @@ pub enum Expr<A: Annotation = Span> {
|
|||||||
MetId(String),
|
MetId(String),
|
||||||
/// A literal bool, string, char, or int
|
/// A literal bool, string, char, or int
|
||||||
Lit(Literal),
|
Lit(Literal),
|
||||||
/// `(let | const | static) Pat<NoTopAlt> (= expr (else expr)?)?` |
|
/// `(let | const | static) Pat::NoTopAlt (= expr (else expr)?)?` |
|
||||||
/// `(fn | mod | impl) Pat<Fn> Expr`
|
/// `(fn | mod | impl) Pat::Fn Expr`
|
||||||
Bind(Box<Bind<A>>),
|
Bind(Box<Bind<A>>),
|
||||||
/// (struct | enum | type) Pat<NoTopAlt>
|
/// (struct | enum | type) Pat::NoTopAlt
|
||||||
Struct(Box<Typedef>),
|
Struct(Box<Typedef>),
|
||||||
/// Expr { (Ident (: Expr)?),* }
|
/// Expr { (Ident (: Expr)?),* }
|
||||||
Make(Box<Make<A>>),
|
Make(Box<Make<A>>),
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ impl<'t> Parser<'t> {
|
|||||||
|
|
||||||
/// Parses a list of P separated by `sep` tokens, ending in an `end` token.
|
/// Parses a list of P separated by `sep` tokens, ending in an `end` token.
|
||||||
/// ```ignore
|
/// ```ignore
|
||||||
/// List<T> = (T `sep`)* T? `end` ;
|
/// List<T> = (T sep)* T? end ;
|
||||||
/// ```
|
/// ```
|
||||||
pub fn list<P: Parse<'t>>(
|
pub fn list<P: Parse<'t>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
@@ -188,7 +188,7 @@ impl<'t> Parser<'t> {
|
|||||||
|
|
||||||
/// Parses a list of one or more P at level `level`, separated by `sep` tokens
|
/// Parses a list of one or more P at level `level`, separated by `sep` tokens
|
||||||
/// ```ignore
|
/// ```ignore
|
||||||
/// UnterminatedList<P> = P (`sep` P)*
|
/// UnterminatedList<P> = P (sep P)*
|
||||||
/// ```
|
/// ```
|
||||||
pub fn list_bare<P: Parse<'t>>(
|
pub fn list_bare<P: Parse<'t>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
Reference in New Issue
Block a user