Fix typos.
PiperOrigin-RevId: 716211176 Change-Id: Ibadfe13db89ed9047832b977e918faa3c5c6d9f1
This commit is contained in:
committed by
Copybara-Service
parent
4da2ddce29
commit
893a993bf6
@@ -993,7 +993,7 @@ std::string FilePath::PathReduce(const std::string& str) {
|
||||
int j = abs_prefix.size();
|
||||
|
||||
for (int i = j; i < str.size(); ++i) {
|
||||
if (IsSeperator(str[i])) {
|
||||
if (IsSeparator(str[i])) {
|
||||
std::string temp = str.substr(j, i - j);
|
||||
j = i + 1;
|
||||
if (temp == ".." && !dirs.empty() && dirs.back() != "..") {
|
||||
|
||||
Reference in New Issue
Block a user