Skip to content

Commit

Permalink
fix: minor doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Sep 2, 2023
1 parent 98a4586 commit d6af9c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/noirc_frontend/src/hir/type_check/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'interner> TypeChecker<'interner> {
if let note = meta.attributes.get_deprecated_note() {
self.errors.push(TypeCheckError::CallDeprecated {
name: self.interner.definition_name(id).to_string(),
note, // TODO(MD): remove clone
note,
span: location.span,
});
}
Expand Down
5 changes: 2 additions & 3 deletions crates/noirc_frontend/src/hir_def/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ pub struct FuncMeta {
pub module_id: ModuleId,

/// A function's attributes are the `#[...]` items above the function
/// definition, if any. Currently, this is limited to a maximum of only one
/// Attribute per function.
/// TODO: edit the above
/// definition.
/// Primary Attributes will alter the function kind, secondary attributes do not
pub attributes: Attributes,

/// This function's type in its contract.
Expand Down

0 comments on commit d6af9c7

Please sign in to comment.