Skip to content

Commit

Permalink
docs: Improved doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed Sep 28, 2023
1 parent f101241 commit 63583ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/noirc_driver/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pub struct CompiledContract {
pub functions: Vec<ContractFunction>,

/// All the events defined inside the contract scope.
/// An event is a struct value that can be emitted via oracles
/// by any contract function during execution.
pub events: Vec<ContractEvent>,

pub file_map: BTreeMap<FileId, DebugFile>,
Expand Down
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/def_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub struct ContractFunctionMeta {
pub is_entry_point: bool,
}

/// A 'contract' in Noir source code with the given name and functions.
/// A 'contract' in Noir source code with a given name, functions and events.
/// This is not an AST node, it is just a convenient form to return for CrateDefMap::get_all_contracts.
pub struct Contract {
/// To keep `name` semi-unique, it is prefixed with the names of parent modules via CrateDefMap::get_module_path
Expand Down

0 comments on commit 63583ea

Please sign in to comment.