Use backticks not vertical bars to denote variables in comments for /rtc_base
Bug: webrtc:12338
Change-Id: I72fcb505a92f03b2ace7160ee33d555a977eddfd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226955
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34587}
diff --git a/rtc_base/strings/string_builder.h b/rtc_base/strings/string_builder.h
index e528cf2..6fe478c 100644
--- a/rtc_base/strings/string_builder.h
+++ b/rtc_base/strings/string_builder.h
@@ -25,7 +25,7 @@
// when you might otherwise be tempted to use a stringstream (discouraged for
// anything except logging). It uses a fixed-size buffer provided by the caller
// and concatenates strings and numbers into it, allowing the results to be
-// read via |str()|.
+// read via `str()`.
class SimpleStringBuilder {
public:
explicit SimpleStringBuilder(rtc::ArrayView<char> buffer);
@@ -45,12 +45,12 @@
SimpleStringBuilder& operator<<(double f);
SimpleStringBuilder& operator<<(long double f);
- // Returns a pointer to the built string. The name |str()| is borrowed for
+ // Returns a pointer to the built string. The name `str()` is borrowed for
// compatibility reasons as we replace usage of stringstream throughout the
// code base.
const char* str() const { return buffer_.data(); }
- // Returns the length of the string. The name |size()| is picked for STL
+ // Returns the length of the string. The name `size()` is picked for STL
// compatibility reasons.
size_t size() const { return size_; }