Skip to content

Commit

Permalink
Fix position to_string
Browse files Browse the repository at this point in the history
Summary: cpp_i_guess

Reviewed By: yuhshin-oss

Differential Revision: D63408325

fbshipit-source-id: e1e2d6bbf52cb8ea235f622188c5bd41f51697dd
  • Loading branch information
Anwesh Tuladhar authored and facebook-github-bot committed Sep 25, 2024
1 parent a0b020c commit 0daa39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ std::string Position::to_string() const {
out.append(fmt::format("path=`{}`,", show(path_)));
}
if (line_ != k_unknown_line) {
out.append("line={},", line_);
out.append(fmt::format("line={},", line_));
}
if (start_ != k_unknown_start) {
out.append("start={},", start_);
out.append(fmt::format("start={},", start_));
}
if (end_ != k_unknown_end) {
out.append("end={}", end_);
out.append(fmt::format("end={}", end_));
}

out.append(")");
Expand Down

0 comments on commit 0daa39d

Please sign in to comment.