Skip to content

Commit

Permalink
Issue rshariffdeen#3: Correct indentation for lines of an unified dif…
Browse files Browse the repository at this point in the history
…f example

The indentation was still inappropriate for a few lines of an unified
diff example.
Thus fix this detail.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
  • Loading branch information
elfring committed Oct 26, 2021
1 parent 3cba07d commit 09fab78
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,20 @@ If you prefer changes to display in unified diff format, use the additional flag
--- /FixMorph/tests/update/assignment/PC/selection-sort.c
+++ /FixMorph/tests/update/assignment/PC-patch/selection-sort.c
@@ -15,11 +15,11 @@
while (a < length) {
while (a < length) {
author_id = author_list[a].user_id;
rank = author_list[a].rank;
- minimum = rank;
+ minimum = author_id;
- minimum = rank;
+ minimum = author_id;
position = a;
for (b = a + 1; b < length; b++) {
- if (author_list[b].rank < minimum) {
- minimum = author_list[b].rank;
+ if (author_list[b].user_id < minimum) {
+ minimum = author_list[b].user_id;
- if (author_list[b].rank < minimum) {
- minimum = author_list[b].rank;
+ if (author_list[b].user_id < minimum) {
+ minimum = author_list[b].user_id;
position = b;
}
}
}
```

Many such examples are included in the 'tests' directory, simply replace the configuration file path and run the same command as above.
Expand Down

0 comments on commit 09fab78

Please sign in to comment.