diff --git a/README.md b/README.md index 7ed5460..ffdea05 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ public interface IWeightedCollection : IReadOnlyCollection> } // Struct representing a weighted element -public rrecord struct WeightedValue(T Value, double Weight); +public record struct WeightedValue(T Value, double Weight); ``` Below is a sample of using `WeightedList` for weighted selection.