From 39b19e8ff30a9154535fbd207961de9e6d838332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Fri, 7 Jun 2019 23:41:06 +0100 Subject: [PATCH] XML comment fixes. --- src/Avalonia.Base/Utilities/MathUtilities.cs | 5 ++++- src/Avalonia.Controls/Grid.cs | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Avalonia.Base/Utilities/MathUtilities.cs b/src/Avalonia.Base/Utilities/MathUtilities.cs index 546133bb03..41b57b6e70 100644 --- a/src/Avalonia.Base/Utilities/MathUtilities.cs +++ b/src/Avalonia.Base/Utilities/MathUtilities.cs @@ -30,6 +30,7 @@ namespace Avalonia.Utilities /// LessThan - Returns whether or not the first double is less than the second double. /// That is, whether or not the first is strictly less than *and* not within epsilon of /// the other number. + /// /// The first double to compare. /// The second double to compare. public static bool LessThan(double value1, double value2) @@ -41,6 +42,7 @@ namespace Avalonia.Utilities /// GreaterThan - Returns whether or not the first double is greater than the second double. /// That is, whether or not the first is strictly greater than *and* not within epsilon of /// the other number. + /// /// The first double to compare. /// The second double to compare. public static bool GreaterThan(double value1, double value2) @@ -52,6 +54,7 @@ namespace Avalonia.Utilities /// LessThanOrClose - Returns whether or not the first double is less than or close to /// the second double. That is, whether or not the first is strictly less than or within /// epsilon of the other number. + /// /// The first double to compare. /// The second double to compare. public static bool LessThanOrClose(double value1, double value2) @@ -170,4 +173,4 @@ namespace Avalonia.Utilities } } } -} \ No newline at end of file +} diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs index fc61c409f0..6d3b9f37cf 100644 --- a/src/Avalonia.Controls/Grid.cs +++ b/src/Avalonia.Controls/Grid.cs @@ -1969,7 +1969,7 @@ namespace Avalonia.Controls /// /// Array of definitions to process. /// Final size to lay out to. - /// True if sizing row definitions, false for columns + /// True if sizing column definitions, false for rows private void SetFinalSize( IReadOnlyList definitions, double finalSize, @@ -2694,9 +2694,9 @@ namespace Avalonia.Controls /// if the max constraint has higher discrepancy /// null if proportion doesn't fail a min or max constraint /// The discrepancy is the ratio of the proportion to the max- or min-ratio. - /// When both ratios hit the constraint, minRatio < proportion < maxRatio, + /// When both ratios hit the constraint, minRatio < proportion > maxRatio, /// and the minRatio has higher discrepancy if - /// (proportion / minRatio) > (maxRatio / proportion) + /// (proportion / minRatio) > (maxRatio / proportion) /// private static bool? Choose(double minRatio, double maxRatio, double proportion) { @@ -4063,4 +4063,4 @@ namespace Avalonia.Controls private static readonly Pen _evenDashPen; // second pen to draw dash } } -} \ No newline at end of file +}