From d839ddfb24b046ad65b288711497c8f743a176a8 Mon Sep 17 00:00:00 2001 From: Coen Munckhof Date: Tue, 29 May 2018 20:56:50 +0200 Subject: [PATCH] Update documentation on Guard methods. --- src/ImageSharp/Common/Helpers/DebugGuard.cs | 4 ++-- src/ImageSharp/Common/Helpers/Guard.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ImageSharp/Common/Helpers/DebugGuard.cs b/src/ImageSharp/Common/Helpers/DebugGuard.cs index e64075db7a..6dcd0fd270 100644 --- a/src/ImageSharp/Common/Helpers/DebugGuard.cs +++ b/src/ImageSharp/Common/Helpers/DebugGuard.cs @@ -189,7 +189,7 @@ namespace SixLabors.ImageSharp /// The 'other' span to compare 'target' to. /// The name of the parameter that is to be checked. /// - /// is true + /// has a different size than /// [Conditional("DEBUG")] public static void MustBeSameSized(Span target, Span other, string parameterName) @@ -209,7 +209,7 @@ namespace SixLabors.ImageSharp /// The 'minSpan' span to compare 'target' to. /// The name of the parameter that is to be checked. /// - /// is true + /// has less items than /// [Conditional("DEBUG")] public static void MustBeSizedAtLeast(Span target, Span minSpan, string parameterName) diff --git a/src/ImageSharp/Common/Helpers/Guard.cs b/src/ImageSharp/Common/Helpers/Guard.cs index 9258beb368..011d7fdaac 100644 --- a/src/ImageSharp/Common/Helpers/Guard.cs +++ b/src/ImageSharp/Common/Helpers/Guard.cs @@ -207,14 +207,14 @@ namespace SixLabors.ImageSharp } /// - /// Verifies, that the `source` span has the length of 'minSpan', or longer. + /// Verifies, that the `source` span has the length of 'minLength', or longer. /// /// The element type of the spans /// The source span. /// The minimum length. /// The name of the parameter that is to be checked. /// - /// is true + /// has less than items /// public static void MustBeSizedAtLeast(ReadOnlySpan source, int minLength, string parameterName) { @@ -225,14 +225,14 @@ namespace SixLabors.ImageSharp } /// - /// Verifies, that the `source` span has the length of 'minSpan', or longer. + /// Verifies, that the `source` span has the length of 'minLength', or longer. /// /// The element type of the spans /// The target span. /// The minimum length. /// The name of the parameter that is to be checked. /// - /// is true + /// has less than items /// public static void MustBeSizedAtLeast(Span source, int minLength, string parameterName) {