Skip to content

Commit af23512

Browse files
authored
fix invalid doc example of at-nospecialize (#36797)
1 parent 793a35b commit af23512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/essentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function example_function(@nospecialize x)
6464
...
6565
end
6666
67-
function example_function(@nospecialize(x = 1), y)
67+
function example_function(x, @nospecialize(y = 1))
6868
...
6969
end
7070

0 commit comments

Comments
 (0)