Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Sep 14, 2024
1 parent 4e06653 commit 4e1c63b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/macro_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ function extract_interpolations!(interpolations, expr::Expr)
end

create_first_function(f::Symbol) = f
# We use `Returns` to reduce compile time by using fewer anonomous functions.
# We use `Returns` to reduce compile time by using fewer anonymous functions.
# Assumeing that any value in an expression tree other than Expr or QuoteNode `eval`s to
# itself, using `Returns` is semantically equivalent ot the documented behavior. Assuming
# that we prevent constant propigation elsewhere it should produce equivalent measurements.
# itself, using `Returns` is semantically equivalent to the documented behavior. Assuming
# that we prevent constant propagation elsewhere it should produce equivalent measurements.
create_first_function(x) = Returns(x)
create_first_function(body::Union{QuoteNode, Expr}) = :(() -> $body)
function create_function(f)
Expand Down

0 comments on commit 4e1c63b

Please sign in to comment.