diff --git a/src/Sqids/SqidsEncoder.cs b/src/Sqids/SqidsEncoder.cs index 6a8e199..fc7a856 100644 --- a/src/Sqids/SqidsEncoder.cs +++ b/src/Sqids/SqidsEncoder.cs @@ -71,13 +71,13 @@ public SqidsEncoder(SqidsOptions options) if (options.Alphabet.Distinct().Count() != options.Alphabet.Length) throw new ArgumentOutOfRangeException( - nameof(options.MinLength), + nameof(options.Alphabet), "The alphabet must not contain duplicate characters." ); if (Encoding.UTF8.GetByteCount(options.Alphabet) != options.Alphabet.Length) throw new ArgumentOutOfRangeException( - nameof(options.MinLength), + nameof(options.Alphabet), "The alphabet must not contain multi-byte characters." );