From 023cd2655603060f74e0d4f2f94d92115af6b5cf Mon Sep 17 00:00:00 2001 From: Ian Qvist Date: Sat, 20 Jan 2024 01:34:35 +0100 Subject: [PATCH] Point to the right argument --- src/Sqids/SqidsEncoder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." );