Skip to content

Commit 0fea390

Browse files
committed
fixed inline function def
1 parent 70ce753 commit 0fea390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ function lpdist(x::T, y::T, p::Int) where {T <: AbstractVector}
921921
elseif p == 2
922922
fn = abs2
923923
else
924-
fn = x -> abs(u)^p
924+
fn = u -> abs(u)^p
925925
end
926926
r = _lpunnorm(x, y, fn)
927927

0 commit comments

Comments
 (0)