Skip to content

Commit

Permalink
Fix a typographical error.
Browse files Browse the repository at this point in the history
Change-Id: I89d47c796cdfad3ddb39ab03fd294d77d7ae704d
Reviewed-on: https://code-review.googlesource.com/c/re2/+/61390
Reviewed-by: Paul Wankadia <[email protected]>
Reviewed-by: Perry Lorier <[email protected]>
  • Loading branch information
junyer committed Jun 1, 2023
1 parent 891529f commit 315514c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion re2/re2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ int RE2::MaxSubmatch(absl::string_view rewrite) {
return max;
}

// Append the "rewrite" string, with backslash subsitutions from "vec",
// Append the "rewrite" string, with backslash substitutions from "vec",
// to string "out".
bool RE2::Rewrite(std::string* out,
absl::string_view rewrite,
Expand Down
2 changes: 1 addition & 1 deletion util/pcre.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class PCRE {
int TryMatch(absl::string_view text, size_t startpos, Anchor anchor,
bool empty_ok, int* vec, int vecsize) const;

// Append the "rewrite" string, with backslash subsitutions from "text"
// Append the "rewrite" string, with backslash substitutions from "text"
// and "vec", to string "out".
bool Rewrite(std::string* out, absl::string_view rewrite,
absl::string_view text, int* vec, int veclen) const;
Expand Down

0 comments on commit 315514c

Please sign in to comment.