From ae026420f19a5fc9df44c4d9fb29dee1c86d5323 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 18 May 2025 12:02:50 -0400 Subject: [PATCH] conlang: Fix rustdoc warnings --- compiler/cl-interpret/src/error.rs | 2 +- compiler/cl-parser/src/parser.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/cl-interpret/src/error.rs b/compiler/cl-interpret/src/error.rs index 5fe5ce8..ad392e9 100644 --- a/compiler/cl-interpret/src/error.rs +++ b/compiler/cl-interpret/src/error.rs @@ -16,7 +16,7 @@ pub struct Error { impl Error { #![allow(non_snake_case)] - /// Adds a [Span] to this [Error], if there isn't already a more specific one. + /// Adds a [struct Span] to this [Error], if there isn't already a more specific one. pub fn with_span(self, span: Span) -> Self { Self { span: self.span.or(Some(span)), ..self } } diff --git a/compiler/cl-parser/src/parser.rs b/compiler/cl-parser/src/parser.rs index 87c8e46..06e47b1 100644 --- a/compiler/cl-parser/src/parser.rs +++ b/compiler/cl-parser/src/parser.rs @@ -482,7 +482,7 @@ impl Parse<'_> for Function { type FnSig = (Pattern, Vec); impl Parse<'_> for FnSig { - /// Parses the [parameters](Param) associated with a Function + /// Parses the parameter list of a Function fn parse(p: &mut Parser) -> PResult { const P: Parsing = Parsing::Function; let (mut params, mut types) = (vec![], vec![]); @@ -501,7 +501,7 @@ impl Parse<'_> for FnSig { type TypedParam = (Pattern, TyKind); impl Parse<'_> for TypedParam { - /// Parses a single function [parameter](Param) + /// Parses a single function parameter fn parse(p: &mut Parser) -> PResult<(Pattern, TyKind)> { Ok(( Pattern::parse(p)?,