Skip to content

Commit 18bbc1a

Browse files
committed
Fixed typo
1 parent 2b2e97c commit 18bbc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/lecture_06/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct Point{T <: Real}
3838
y::T
3939
end
4040
41-
coordinates(p::Point) where T = (p.x, p.y)
41+
coordinates(p::Point) = (p.x, p.y)
4242
show(io::IO, p::Point) = print(io, coordinates(p))
4343
distance(p::Point, q::Point) = norm(coordinates(q) .- coordinates(p), 2)
4444

0 commit comments

Comments
 (0)