Skip to content

Commit 397ea70

Browse files
authored
public as an identifier is deprecated (#612)
1 parent ce6e341 commit 397ea70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/construct.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ In a fresh session,
352352
353353
```
354354
julia> expr = quote
355-
public(x::Integer) = true
355+
public_fn(x::Integer) = true
356356
module Private
357357
private(y::String) = false
358358
end
@@ -365,7 +365,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr)
365365
mod = Main
366366
ex = quote
367367
#= REPL[7]:2 =#
368-
public(x::Integer) = begin
368+
public_fn(x::Integer) = begin
369369
#= REPL[7]:2 =#
370370
true
371371
end
@@ -415,7 +415,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr)
415415
julia> threshold
416416
0.1
417417
418-
julia> public(3)
418+
julia> public_fn(3)
419419
true
420420
```
421421

src/precompile.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module var"#Internal"
2-
public(x::String) = false
2+
public_fn(x::String) = false
33
end
44

55
function _precompile_()
66
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
77
@interpret sum(rand(10))
88
expr = quote
9-
public(x::Integer) = true
9+
public_fn(x::Integer) = true
1010
module Private
1111
private(y::String) = false
1212
end

0 commit comments

Comments
 (0)