Merge pull request #951 from monarchdodra/count3

improvements/fixes for count countUntil
This commit is contained in:
Andrei Alexandrescu 2012-12-13 09:17:47 -08:00
commit 1b2b5fb76e
2 changed files with 142 additions and 54 deletions

View file

@ -2682,7 +2682,7 @@ string expandTilde(string inputPath)
// Extract username, searching for path separator.
string username;
auto last_char = std.algorithm.countUntil(path, dirSeparator[0]);
auto last_char = std.string.indexOf(path, dirSeparator[0]);
if (last_char == -1)
{