Skip to content

Commit

Permalink
replace function quat end with quat
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Nov 25, 2023
1 parent 13e68a3 commit 538a840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quaternion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ julia> quat([1, 2, 3])
Quaternion{Int64}(3, 0, 0, 0)
```
"""
function quat end
quat

quat(q::Quaternion) = q
quat(s::Real) = Quaternion(s)
Expand Down

0 comments on commit 538a840

Please sign in to comment.