diff --git a/src/construct.jl b/src/construct.jl index ab082bb1..e9dc8ac8 100644 --- a/src/construct.jl +++ b/src/construct.jl @@ -352,7 +352,7 @@ In a fresh session, ``` julia> expr = quote - public(x::Integer) = true + public_fn(x::Integer) = true module Private private(y::String) = false end @@ -365,7 +365,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr) mod = Main ex = quote #= REPL[7]:2 =# - public(x::Integer) = begin + public_fn(x::Integer) = begin #= REPL[7]:2 =# true end @@ -415,7 +415,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr) julia> threshold 0.1 -julia> public(3) +julia> public_fn(3) true ``` diff --git a/src/precompile.jl b/src/precompile.jl index f929cde5..5fa91890 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,12 +1,12 @@ module var"#Internal" -public(x::String) = false +public_fn(x::String) = false end function _precompile_() ccall(:jl_generating_output, Cint, ()) == 1 || return nothing @interpret sum(rand(10)) expr = quote - public(x::Integer) = true + public_fn(x::Integer) = true module Private private(y::String) = false end