diff --git a/VpSharp/src/Vector3d.cs b/VpSharp/src/Vector3d.cs index 35cd6ef..579d21a 100644 --- a/VpSharp/src/Vector3d.cs +++ b/VpSharp/src/Vector3d.cs @@ -63,12 +63,12 @@ public struct Vector3d : IEquatable, IFormattable /// . The span must contain at least 3 elements. /// /// The span of elements to assign to the vector. - /// contains fewer than 3 elements. + /// contains fewer than 3 elements. public Vector3d(ReadOnlySpan values) { if (values.Length < 3) { - throw new IndexOutOfRangeException("The specified span has an insufficient number of elements."); + throw new ArgumentException("The specified span has an insufficient number of elements.", nameof(values)); } this = Unsafe.ReadUnaligned(ref Unsafe.As(ref MemoryMarshal.GetReference(values)));