From 2d1dbb17af2bd3d93ba3e02eb7a07b4b7dd13892 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Mon, 10 Apr 2023 15:23:49 +0100 Subject: [PATCH] fix doc comment (#6183) --- cranelift/frontend/src/frontend.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 8c320d23a5..ecef10ba76 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -379,8 +379,8 @@ impl<'a> FunctionBuilder<'a> { } /// Declares the type of a variable, so that it can be used later (by calling - /// [`FunctionBuilder::use_var`]). This function will return an error if it - /// was not possible to use the variable. + /// [`FunctionBuilder::use_var`]). This function will return an error if the variable + /// has been previously declared. pub fn try_declare_var(&mut self, var: Variable, ty: Type) -> Result<(), DeclareVariableError> { if self.func_ctx.types[var] != types::INVALID { return Err(DeclareVariableError::DeclaredMultipleTimes(var));