From 5a2ee30a63b62b6d4369a35b3fb40739161818be Mon Sep 17 00:00:00 2001 From: Joshua Zierhut Date: Sat, 27 Apr 2024 15:04:32 -0500 Subject: [PATCH] Fix typo in string resource identifier --- src/Microsoft.Data.Analysis/DataFrame.IO.cs | 2 +- src/Microsoft.Data.Analysis/Strings.Designer.cs | 4 ++-- src/Microsoft.Data.Analysis/Strings.resx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.Data.Analysis/DataFrame.IO.cs b/src/Microsoft.Data.Analysis/DataFrame.IO.cs index dc8aba009..d3848b8d7 100644 --- a/src/Microsoft.Data.Analysis/DataFrame.IO.cs +++ b/src/Microsoft.Data.Analysis/DataFrame.IO.cs @@ -60,7 +60,7 @@ namespace Microsoft.Data.Analysis private static Type GuessKind(int col, List<(long LineNumber, string[] Line)> read, Func, Type> guessTypeFunction) { - IEnumerable lines = read.Select(line => col < line.Line.Length ? line.Line[col] : throw new FormatException(string.Format(Strings.LessColumnsThatExpected, line.LineNumber))); + IEnumerable lines = read.Select(line => col < line.Line.Length ? line.Line[col] : throw new FormatException(string.Format(Strings.LessColumnsThanExpected, line.LineNumber))); return guessTypeFunction != null ? guessTypeFunction.Invoke(lines) diff --git a/src/Microsoft.Data.Analysis/Strings.Designer.cs b/src/Microsoft.Data.Analysis/Strings.Designer.cs index 356b765dc..622401ae4 100644 --- a/src/Microsoft.Data.Analysis/Strings.Designer.cs +++ b/src/Microsoft.Data.Analysis/Strings.Designer.cs @@ -297,9 +297,9 @@ namespace Microsoft.Data { /// /// Looks up a localized string similar to Line {0} has less columns than expected. /// - internal static string LessColumnsThatExpected { + internal static string LessColumnsThanExpected { get { - return ResourceManager.GetString("LessColumnsThatExpected", resourceCulture); + return ResourceManager.GetString("LessColumnsThanExpected", resourceCulture); } } diff --git a/src/Microsoft.Data.Analysis/Strings.resx b/src/Microsoft.Data.Analysis/Strings.resx index 117f4459c..2c2d993c8 100644 --- a/src/Microsoft.Data.Analysis/Strings.resx +++ b/src/Microsoft.Data.Analysis/Strings.resx @@ -195,7 +195,7 @@ All field widths, except the last element, must be greater than zero. A field width less than or equal to zero in the last element indicates the last field is of variable length. - + Line {0} has less columns than expected