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/async_tcp_socket.h b/rtc_base/async_tcp_socket.h index e05cce1..610d17d 100644 --- a/rtc_base/async_tcp_socket.h +++ b/rtc_base/async_tcp_socket.h
@@ -55,17 +55,17 @@ void SetError(int error) override; protected: - // Binds and connects |socket| and creates AsyncTCPSocket for - // it. Takes ownership of |socket|. Returns null if bind() or - // connect() fail (|socket| is destroyed in that case). + // Binds and connects `socket` and creates AsyncTCPSocket for + // it. Takes ownership of `socket`. Returns null if bind() or + // connect() fail (`socket` is destroyed in that case). static AsyncSocket* ConnectSocket(AsyncSocket* socket, const SocketAddress& bind_address, const SocketAddress& remote_address); int FlushOutBuffer(); - // Add data to |outbuf_|. + // Add data to `outbuf_`. void AppendToOutBuffer(const void* pv, size_t cb); - // Helper methods for |outpos_|. + // Helper methods for `outpos_`. bool IsOutBufferEmpty() const { return outbuf_.size() == 0; } void ClearOutBuffer() { outbuf_.Clear(); } @@ -88,9 +88,9 @@ class AsyncTCPSocket : public AsyncTCPSocketBase { public: - // Binds and connects |socket| and creates AsyncTCPSocket for - // it. Takes ownership of |socket|. Returns null if bind() or - // connect() fail (|socket| is destroyed in that case). + // Binds and connects `socket` and creates AsyncTCPSocket for + // it. Takes ownership of `socket`. Returns null if bind() or + // connect() fail (`socket` is destroyed in that case). static AsyncTCPSocket* Create(AsyncSocket* socket, const SocketAddress& bind_address, const SocketAddress& remote_address);