Use backticks not vertical bars to denote variables in comments for /api
Bug: webrtc:12338
Change-Id: Ib97b2c3d64dbd895f261ffa76a2e885bd934a87f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226940
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34554}
diff --git a/api/scoped_refptr.h b/api/scoped_refptr.h
index 4e3f0eb..5b3a085 100644
--- a/api/scoped_refptr.h
+++ b/api/scoped_refptr.h
@@ -24,13 +24,13 @@
// void some_function() {
// scoped_refptr<MyFoo> foo = new MyFoo();
// foo->Method(param);
-// // |foo| is released when this function returns
+// // `foo` is released when this function returns
// }
//
// void some_other_function() {
// scoped_refptr<MyFoo> foo = new MyFoo();
// ...
-// foo = nullptr; // explicitly releases |foo|
+// foo = nullptr; // explicitly releases `foo`
// ...
// if (foo)
// foo->Method(param);
@@ -45,10 +45,10 @@
// scoped_refptr<MyFoo> b;
//
// b.swap(a);
-// // now, |b| references the MyFoo object, and |a| references null.
+// // now, `b` references the MyFoo object, and `a` references null.
// }
//
-// To make both |a| and |b| in the above example reference the same MyFoo
+// To make both `a` and `b` in the above example reference the same MyFoo
// object, simply use the assignment operator:
//
// {
@@ -56,7 +56,7 @@
// scoped_refptr<MyFoo> b;
//
// b = a;
-// // now, |a| and |b| each own a reference to the same MyFoo object.
+// // now, `a` and `b` each own a reference to the same MyFoo object.
// }
//