Fix doc comments.

This commit is contained in:
Stephen Chung
2022-08-10 12:48:37 +08:00
parent 8dc7137913
commit 255af006ee
8 changed files with 50 additions and 51 deletions

View File

@@ -29,7 +29,7 @@ mod private {
use crate::func::SendSync;
use std::any::Any;
/// A sealed trait that prevents other crates from implementing [`Variant`].
/// A sealed trait that prevents other crates from implementing [`Variant`][super::Variant].
pub trait Sealed {}
impl<T: Any + Clone + SendSync> Sealed for T {}

View File

@@ -527,7 +527,7 @@ impl EvalAltResult {
self
}
/// Consume the current [`EvalAltResult`] and return a new one with the specified [`Position`]
/// if the current position is [`Position::None`].
/// if the current position is [`Position::NONE`].
#[inline(never)]
#[must_use]
pub(crate) fn fill_position(mut self: Box<Self>, new_position: Position) -> Box<Self> {