Skip to content

Commit 7c8a875

Browse files
committed
Merge pull request #1229 from tomcsmith1990/fix-myers-algorithm-spelling
Rename Myers diff algorithm to fix the spelling
2 parents 3aadd4a + 43f8a3a commit 7c8a875

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LibGit2Sharp/CompareOptions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public CompareOptions()
1414
{
1515
ContextLines = 3;
1616
InterhunkLines = 0;
17-
Algorithm = DiffAlgorithm.Meyers;
17+
Algorithm = DiffAlgorithm.Myers;
1818
}
1919

2020
/// <summary>
@@ -47,7 +47,7 @@ public CompareOptions()
4747

4848
/// <summary>
4949
/// Algorithm to be used when performing a Diff.
50-
/// By default, <see cref="DiffAlgorithm.Meyers"/> will be used.
50+
/// By default, <see cref="DiffAlgorithm.Myers"/> will be used.
5151
/// </summary>
5252
public DiffAlgorithm Algorithm { get; set; }
5353
}

LibGit2Sharp/DiffAlgorithm.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public enum DiffAlgorithm
88
/// <summary>
99
/// The basic greedy diff algorithm.
1010
/// </summary>
11-
Meyers = 0,
11+
Myers = 0,
1212

1313
/// <summary>
1414
/// Use "patience diff" algorithm when generating patches.

0 commit comments

Comments
 (0)