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/bit_buffer.h b/rtc_base/bit_buffer.h
index 388218e..5736616 100644
--- a/rtc_base/bit_buffer.h
+++ b/rtc_base/bit_buffer.h
@@ -106,10 +106,10 @@
return val ? ReadSignedExponentialGolomb(*val) : false;
}
- // Moves current position |byte_count| bytes forward. Returns false if
+ // Moves current position `byte_count` bytes forward. Returns false if
// there aren't enough bytes left in the buffer.
bool ConsumeBytes(size_t byte_count);
- // Moves current position |bit_count| bits forward. Returns false if
+ // Moves current position `bit_count` bits forward. Returns false if
// there aren't enough bits left in the buffer.
bool ConsumeBits(size_t bit_count);
@@ -119,9 +119,9 @@
protected:
const uint8_t* const bytes_;
- // The total size of |bytes_|.
+ // The total size of `bytes_`.
size_t byte_count_;
- // The current offset, in bytes, from the start of |bytes_|.
+ // The current offset, in bytes, from the start of `bytes_`.
size_t byte_offset_;
// The current offset, in bits, into the current byte.
size_t bit_offset_;
@@ -134,7 +134,7 @@
// BitBuffer API, so both reading and writing will consume bytes/bits.
class BitBufferWriter : public BitBuffer {
public:
- // Constructs a bit buffer for the writable buffer of |bytes|.
+ // Constructs a bit buffer for the writable buffer of `bytes`.
BitBufferWriter(uint8_t* bytes, size_t byte_count);
// Writes byte-sized values from the buffer. Returns false if there isn't
@@ -152,7 +152,7 @@
// Call SizeNonSymmetricBits to get number of bits needed to store the value.
// Returns false if there isn't enough room left for the value.
bool WriteNonSymmetric(uint32_t val, uint32_t num_values);
- // Returns number of bits required to store |val| with NonSymmetric encoding.
+ // Returns number of bits required to store `val` with NonSymmetric encoding.
static size_t SizeNonSymmetricBits(uint32_t val, uint32_t num_values);
// Writes the exponential golomb encoded version of the supplied value.