Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Feb 18, 2025
1 parent ea8f312 commit fb8222e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noir-projects/aztec-nr/aztec/src/macros/utils.nr
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ pub(crate) comptime fn is_note(typ: Type) -> bool {
})
}

/// We get the typed expressions of a trait method implementation rather than directly inlining them in a quote with
/// `$typ::target_method()`. Direct inlining would result in missing import warnings in the generated code
/// (specifically, warnings that `target_trait` is implemented but not in scope).
/// Returns the typed expression of a trait method implementation. This is preferred over directly inlining with
/// `$typ::target_method()` in a quote, as direct inlining would result in missing import warnings in the generated
/// code (specifically, warnings that the trait implementation is not in scope).
pub(crate) comptime fn get_trait_impl_method(
typ: Type,
target_trait: Quoted,
Expand Down

0 comments on commit fb8222e

Please sign in to comment.