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/byte_buffer.h b/rtc_base/byte_buffer.h
index 31fc8cb..fc383f0 100644
--- a/rtc_base/byte_buffer.h
+++ b/rtc_base/byte_buffer.h
@@ -83,7 +83,7 @@
return buffer_.data();
}
- // Resize the buffer to the specified |size|.
+ // Resize the buffer to the specified `size`.
void Resize(size_t size) { buffer_.SetSize(size); }
// Clears the contents of the buffer. After this, Length() will be 0.
@@ -144,12 +144,12 @@
bool ReadUVarint(uint64_t* val);
bool ReadBytes(char* val, size_t len);
- // Appends next |len| bytes from the buffer to |val|. Returns false
- // if there is less than |len| bytes left.
+ // Appends next `len` bytes from the buffer to `val`. Returns false
+ // if there is less than `len` bytes left.
bool ReadString(std::string* val, size_t len);
- // Moves current position |size| bytes forward. Returns false if
- // there is less than |size| bytes left in the buffer. Consume doesn't
+ // Moves current position `size` bytes forward. Returns false if
+ // there is less than `size` bytes left in the buffer. Consume doesn't
// permanently remove data, so remembered read positions are still valid
// after this call.
bool Consume(size_t size);