Skip to content

Commit 8a2eecd

Browse files
KonHAndreyAkinshin
authored andcommitted
Fix minor spelling issues and typos (#930)
1 parent f9ac688 commit 8a2eecd

File tree

17 files changed

+28
-28
lines changed

17 files changed

+28
-28
lines changed

samples/BenchmarkDotNet.Samples/IntroDeferredExecution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class IntroDeferredExecution
2222
public IEnumerable<int> Wrong() => from number in numbers orderby number descending select number;
2323

2424
/// <summary>
25-
/// this benchmark uses .Consume extension method which executes given deferred query and cosumes its result
25+
/// this benchmark uses .Consume extension method which executes given deferred query and consumes its result
2626
/// so the benchmark measures the cost of creating the query and executing it
2727
/// </summary>
2828
[Benchmark]

src/BenchmarkDotNet.Disassembler.x64/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static bool TryGetHexAdress(string textRepresentation, out ulong address)
343343
var rightPart = textRepresentation
344344
.Split(CallSeparator, StringSplitOptions.RemoveEmptyEntries).Last() // take the right part
345345
.Trim() // remove leading whitespaces
346-
.Replace("`", string.Empty); // remove the magic delimeter
346+
.Replace("`", string.Empty); // remove the magic delimiter
347347

348348
string addressPart = string.Empty;
349349
if (rightPart.Contains('(') && rightPart.Contains(')'))
@@ -456,7 +456,7 @@ public bool Equals(Code x, Code y)
456456
return false;
457457

458458
// sometimes ClrMD reports same address range in two different ILToNativeMaps
459-
// this happens usualy for prolog and the instruction after prolog
459+
// this happens usually for prolog and the instruction after prolog
460460
// and for the epilog and last instruction before epilog
461461
if (x is Asm asmLeft && y is Asm asmRight)
462462
return asmLeft.StartAddress == asmRight.StartAddress && asmLeft.EndAddress == asmRight.EndAddress;

src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ private static Job CreateCoreJobWithCli(Job baseJob, CommandLineOptions options)
370370
packagesPath: options.RestorePath?.FullName)));
371371

372372
/// <summary>
373-
/// we have a limited amout of space when printing the output to the console, so we try to keep things small and simple
373+
/// we have a limited amount of space when printing the output to the console, so we try to keep things small and simple
374374
///
375375
/// for following paths:
376376
/// C:\Projects\coreclr_upstream\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\CoreRun.exe

src/BenchmarkDotNet/Diagnosers/PreciseMachineCounter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace BenchmarkDotNet.Diagnosers
55
{
6-
#pragma warning disable CS3001, CS3003 // ulong is non CLS-compilant
6+
#pragma warning disable CS3001, CS3003 // ulong is non CLS-compliant
77
public class PreciseMachineCounter
88
{
99
[PublicAPI] public int ProfileSourceId { get; }

src/BenchmarkDotNet/Exporters/Json/SimpleJson.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public override string ToString()
353353
/// <param name="binder">Provides information about the conversion operation. The binder.Type property provides the type to which the object must be converted. For example, for the statement (String)sampleObject in C# (CType(sampleObject, Type) in Visual Basic), where sampleObject is an instance of the class derived from the <see cref="T:System.Dynamic.DynamicObject"/> class, binder.Type returns the <see cref="T:System.String"/> type. The binder.Explicit property provides information about the kind of conversion that occurs. It returns true for explicit conversion and false for implicit conversion.</param>
354354
/// <param name="result">The result of the type conversion operation.</param>
355355
/// <returns>
356-
/// Alwasy returns true.
356+
/// Always returns true.
357357
/// </returns>
358358
public override bool TryConvert(ConvertBinder binder, out object result)
359359
{
@@ -380,7 +380,7 @@ public override bool TryConvert(ConvertBinder binder, out object result)
380380
/// </summary>
381381
/// <param name="binder">Provides information about the deletion.</param>
382382
/// <returns>
383-
/// Alwasy returns true.
383+
/// Always returns true.
384384
/// </returns>
385385
public override bool TryDeleteMember(DeleteMemberBinder binder)
386386
{
@@ -398,7 +398,7 @@ public override bool TryDeleteMember(DeleteMemberBinder binder)
398398
/// <param name="indexes">The indexes that are used in the operation. For example, for the sampleObject[3] operation in C# (sampleObject(3) in Visual Basic), where sampleObject is derived from the DynamicObject class, <paramref name="indexes"/> is equal to 3.</param>
399399
/// <param name="result">The result of the index operation.</param>
400400
/// <returns>
401-
/// Alwasy returns true.
401+
/// Always returns true.
402402
/// </returns>
403403
public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
404404
{
@@ -418,7 +418,7 @@ public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out ob
418418
/// <param name="binder">Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the <see cref="T:System.Dynamic.DynamicObject"/> class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.</param>
419419
/// <param name="result">The result of the get operation. For example, if the method is called for a property, you can assign the property value to <paramref name="result"/>.</param>
420420
/// <returns>
421-
/// Alwasy returns true.
421+
/// Always returns true.
422422
/// </returns>
423423
public override bool TryGetMember(GetMemberBinder binder, out object result)
424424
{
@@ -555,7 +555,7 @@ public static object DeserializeObject(string json)
555555
/// The object.
556556
/// </param>
557557
/// <returns>
558-
/// Returns true if successfull otherwise false.
558+
/// Returns true if successful otherwise false.
559559
/// </returns>
560560
[SuppressMessage("Microsoft.Design", "CA1007:UseGenericsWhereAppropriate", Justification="Need to support .NET 2")]
561561
public static bool TryDeserializeObject(string json, out object obj)

src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunPublisher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private void UpdateDuplicatedDependencies(ArtifactsPaths artifactsPaths, ILogger
5656

5757
if(publishedVersion > coreRunVersion)
5858
{
59-
File.Copy(publishedDependency.FullName, coreRunDependency.FullName, overwrite: true); // we need to ovwerite old things with their newer versions
59+
File.Copy(publishedDependency.FullName, coreRunDependency.FullName, overwrite: true); // we need to overwrite old things with their newer versions
6060

6161
logger.WriteLineInfo($"Copying {publishedDependency.FullName} to {coreRunDependency.FullName}");
6262
}

src/BenchmarkDotNet/Toolchains/CoreRun/CoreRunToolchain.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public CoreRunToolchain(FileInfo coreRun, bool createCopy = true,
2626
string displayName = "CoreRun")
2727
{
2828
if (coreRun == null) throw new ArgumentNullException(nameof(coreRun));
29-
if (!coreRun.Exists) throw new FileNotFoundException("Povided CoreRun path does not exist");
29+
if (!coreRun.Exists) throw new FileNotFoundException("Provided CoreRun path does not exist");
3030

3131
SourceCoreRun = coreRun;
3232
CopyCoreRun = createCopy ? GetShadowCopyPath(coreRun) : coreRun;
@@ -61,7 +61,7 @@ public bool IsSupported(BenchmarkCase benchmark, ILogger logger, IResolver resol
6161
{
6262
if (!SourceCoreRun.Exists)
6363
{
64-
logger.WriteLineError($"Povided CoreRun path does not exist, benchmark '{benchmark.DisplayInfo}' will not be executed");
64+
logger.WriteLineError($"Provided CoreRun path does not exist, benchmark '{benchmark.DisplayInfo}' will not be executed");
6565
return false;
6666
}
6767

@@ -73,7 +73,7 @@ public bool IsSupported(BenchmarkCase benchmark, ILogger logger, IResolver resol
7373

7474
if (CustomDotNetCliPath.IsNotNullButDoesNotExist())
7575
{
76-
logger.WriteLineError($"Povided custom dotnet cli path does not exist, benchmark '{benchmark.DisplayInfo}' will not be executed");
76+
logger.WriteLineError($"Provided custom dotnet cli path does not exist, benchmark '{benchmark.DisplayInfo}' will not be executed");
7777
return false;
7878
}
7979

src/BenchmarkDotNet/Toolchains/CustomCoreClr/CustomCoreClrToolchainBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public CustomCoreClrToolchainBuilder UseCoreFxLocalBuild(string privateCoreFxNet
8585
/// creates a toolchain which publishes self-contained app which references NuGet CoreFx build
8686
/// </summary>
8787
/// <param name="privateCoreFxNetCoreAppVersion">the version of Microsoft.Private.CoreFx.NETCoreApp which should be used. Example: "4.5.0-preview2-26307-0"</param>
88-
/// <param name="nugetFeedUrl">ulr to NuGet CoreFX feed, The default is: "https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"</param>
88+
/// <param name="nugetFeedUrl">url to NuGet CoreFX feed, The default is: "https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"</param>
8989
public CustomCoreClrToolchainBuilder UseCoreFxNuGet(string privateCoreFxNetCoreAppVersion, string nugetFeedUrl = "https://dotnet.myget.org/F/dotnet-core/api/v3/index.json")
9090
{
9191
coreFxVersion = privateCoreFxNetCoreAppVersion ?? throw new ArgumentNullException(nameof(privateCoreFxNetCoreAppVersion));

src/BenchmarkDotNet/Toolchains/GeneratorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ [PublicAPI] protected virtual void GenerateProject(BuildPartition buildPartition
9191
[PublicAPI] protected virtual string GetPackagesDirectoryPath(string buildArtifactsDirectoryPath) => default;
9292

9393
/// <summary>
94-
/// genrates an app.config file next to the executable with benchmarks
94+
/// generates an app.config file next to the executable with benchmarks
9595
/// </summary>
9696
[PublicAPI] protected virtual void GenerateAppConfig(BuildPartition buildPartition, ArtifactsPaths artifactsPaths)
9797
{

src/BenchmarkDotNet/Toolchains/Roslyn/Builder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private static string GetAssemblyName(Diagnostic diagnostic)
137137
if (diagnostic.Id != MissingReferenceError || !diagnostic.GetMessage().Contains("You must add a reference to assembly"))
138138
return default;
139139

140-
// there is no nice property which would expose the reference name, so we need to to some parsing..
140+
// there is no nice property which would expose the reference name, so we need to some parsing..
141141
// CS0012: The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
142142
return diagnostic.GetMessage().Split('\'').SingleOrDefault(text => text.Contains("Version="));
143143
}

0 commit comments

Comments
 (0)