Update docs

This commit is contained in:
Pranav Gaddamadugu 2022-09-13 11:10:22 +02:00
parent c2bed2bb54
commit a6fe8bf80c
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,
}