Skip to content

Commit

Permalink
fix the argument type of perpendicular_vector (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium authored Sep 21, 2023
1 parent 8314443 commit f6ff1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Compute a vector perpendicular to `vec` by switching the two elements with
largest absolute value, flipping the sign of the second largest, and setting the
remaining element to zero.
"""
function perpendicular_vector(vec::SVector{3})
function perpendicular_vector(vec::StaticVector{3})
T = eltype(vec)

# find indices of the two elements of vec with the largest absolute values:
Expand Down

2 comments on commit f6ff1c6

@hyrodium
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91865

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.6.0 -m "<description of version>" f6ff1c64d93ac2ec665cb11121d89d35f24dc60a
git push origin v1.6.0

Please sign in to comment.