Skip to content

Commit d63dd0e

Browse files
authored
Remove "recursive" from comment (#837)
* Remove "recursive" from comment Fixes #11744 The algorithm isn't really "recursive" because the `GetDirectories` will return all sub-directories, at any level from teh current directory. Therefore, the later calls to `Search` all search only for files. Update the comment to better reflect that. * respond to code review
1 parent 418a2fe commit d63dd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/events/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void Search(string directory, string searchPattern, bool searchSubDirs =
9696
{
9797
directoryChanged?.Invoke(this,
9898
new SearchDirectoryArgs(dir, totalDirs, completedDirs++));
99-
// Recursively search this child directory:
99+
// Search 'dir' and its subdirectories for files that match the search pattern:
100100
SearchDirectory(dir, searchPattern);
101101
}
102102
// Include the Current Directory:

0 commit comments

Comments
 (0)