Skip to content

Commit aabbbbb

Browse files
committed
minor nits & use @addcall
1 parent 92cf8ee commit aabbbbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/align.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export Align
22

33
"""
4-
Align(inner_layout :: AbstractLayout{2}, angle :: Real = zero(Float64))
4+
Align(inner_layout :: AbstractLayout{2, Ptype}, angle :: Ptype = zero(Ptype))
55
66
Align the vertex positions of `inner_layout` so that the principal axis of the resulting
77
layout makes an `angle` with the **x**-axis.
88
99
Only supports two-dimensional inner layouts.
1010
"""
11-
struct Align{Ptype, L <: AbstractLayout{2, Ptype}} <: AbstractLayout{2, Ptype}
11+
@addcall struct Align{Ptype, L <: AbstractLayout{2, Ptype}} <: AbstractLayout{2, Ptype}
1212
inner_layout :: L
1313
angle :: Ptype
1414
function Align(inner_layout::L, angle::Real) where {L <: AbstractLayout{2, Ptype}} where Ptype

0 commit comments

Comments
 (0)