diff --git a/compiler/ast/src/functions/function_output.rs b/compiler/ast/src/functions/function_output.rs index d72c32bbb2..4762626bc5 100644 --- a/compiler/ast/src/functions/function_output.rs +++ b/compiler/ast/src/functions/function_output.rs @@ -25,7 +25,7 @@ use std::fmt; pub struct FunctionOutput { /// The mode of the function output. pub mode: Mode, - /// What's the parameter's type? + /// The type of the function output. pub type_: Type, /// The parameters span from any annotations to its type. pub span: Span, diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 9de82ec10e..b02fd4229b 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -35,10 +35,10 @@ pub struct TypeChecker<'a> { pub(crate) has_return: bool, /// Whether or not the function that we are currently traversing has a finalize statement. pub(crate) has_finalize: bool, - /// Are we traversing a program function? + /// Whether or not we are currently traversing a program function. /// A "program function" is a function that can be invoked by a user or another program. pub(crate) is_program_function: bool, - /// Are we traversing a finalize block? + /// Whether or not we are currently traversing a finalize block. pub(crate) is_finalize: bool, }