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/buffer.h b/rtc_base/buffer.h
index d1639e2..c9bf2cc 100644
--- a/rtc_base/buffer.h
+++ b/rtc_base/buffer.h
@@ -229,13 +229,13 @@
SetData(w.data(), w.size());
}
- // Replaces the data in the buffer with at most |max_elements| of data, using
- // the function |setter|, which should have the following signature:
+ // Replaces the data in the buffer with at most `max_elements` of data, using
+ // the function `setter`, which should have the following signature:
//
// size_t setter(ArrayView<U> view)
//
- // |setter| is given an appropriately typed ArrayView of length exactly
- // |max_elements| that describes the area where it should write the data; it
+ // `setter` is given an appropriately typed ArrayView of length exactly
+ // `max_elements` that describes the area where it should write the data; it
// should return the number of elements actually written. (If it doesn't fill
// the whole ArrayView, it should leave the unused space at the end.)
template <typename U = T,
@@ -290,13 +290,13 @@
AppendData(&item, 1);
}
- // Appends at most |max_elements| to the end of the buffer, using the function
- // |setter|, which should have the following signature:
+ // Appends at most `max_elements` to the end of the buffer, using the function
+ // `setter`, which should have the following signature:
//
// size_t setter(ArrayView<U> view)
//
- // |setter| is given an appropriately typed ArrayView of length exactly
- // |max_elements| that describes the area where it should write the data; it
+ // `setter` is given an appropriately typed ArrayView of length exactly
+ // `max_elements` that describes the area where it should write the data; it
// should return the number of elements actually written. (If it doesn't fill
// the whole ArrayView, it should leave the unused space at the end.)
template <typename U = T,