Skip to content

Commit

Permalink
Fix rustdoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Aug 8, 2022
1 parent 9fb8b39 commit 02c6838
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ impl Cache {

/// Parse a source and populate the corresponding entry in the cache, or do nothing if the
/// entry has already been parsed. This function is error tolerant: parts of the source which
/// result in parse errors are parsed as [`crate::term::RichTerm::Error`] and the
/// result in parse errors are parsed as [`crate::term::Term::ParseError`] and the
/// corresponding error messages are collected and returned.
///
/// The `Err` part of the result corresponds to non-recoverable errors.
Expand Down
8 changes: 4 additions & 4 deletions src/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,16 +842,16 @@ pub enum UnaryOp {
/// Transform a string to an enum.
EnumFromStr(),
/// Test if a regex matches a string.
/// Like [`StrMatch`], this is a unary operator because we would like a way to share the
/// Like [`UnaryOp::StrMatch`], this is a unary operator because we would like a way to share the
/// same "compiled regex" for many matching calls. This is done by returning functions
/// wrapping [`StrIsMatchCompiled`] and [`StrMatchCompiled`]
/// wrapping [`UnaryOp::StrIsMatchCompiled`] and [`UnaryOp::StrMatchCompiled`]
StrIsMatch(),
/// Match a regex on a string, and returns the captured groups together, the index of the
/// match, etc.
StrMatch(),
/// Version of `StrIsMatch` which remembers the compiled regex.
/// Version of [`UnaryOp::StrIsMatch`] which remembers the compiled regex.
StrIsMatchCompiled(CompiledRegex),
/// Version of `StrMatch` which remembers the compiled regex.
/// Version of [`UnaryOp::StrMatch`] which remembers the compiled regex.
StrMatchCompiled(CompiledRegex),
}

Expand Down

0 comments on commit 02c6838

Please sign in to comment.