diff --git a/WeightedList.cs b/WeightedList.cs index 41d831c..dcf024f 100644 --- a/WeightedList.cs +++ b/WeightedList.cs @@ -67,7 +67,7 @@ public void AddWeightToAll(int weight) public void SetWeightOfAll(int weight) { if (weight <= 0 && BadWeightErrorHandling == ThrowExceptionOnAdd) - throw new ArgumentException($"Cannot set weight to <1."); + throw new ArgumentException($"Weight cannot be non-positive."); for (int i = 0; i < Count; i++) _weights[i] = FixWeight(weight); Recalculate(); }