Commit 49417268 authored by Andrew Tulloch's avatar Andrew Tulloch Committed by Jordan DeLong

Update folly/docs/Synchronized.md

Summary:
Fixed escaping bug where the `>` in `operator->` was
interpreted as starting a code block.  Folly github pull #15.

Test Plan: no

Reviewed By: njormrod@fb.com

FB internal diff: D582873
parent e825366c
......@@ -265,8 +265,8 @@ iteration a la:
is a crime punishable by long debugging nights.
If the `Synchronized<T>` object involved is `const`-qualified,
then you'll only be able to call `const` methods through `operator-
>`. So, for example, `vec->push_back("xyz")` won't work if `vec`
then you'll only be able to call `const` methods through `operator->`.
So, for example, `vec->push_back("xyz")` won't work if `vec`
were `const`-qualified. The locking mechanism capitalizes on the
assumption that `const` methods don't modify their underlying
data and only acquires a read lock (as opposed to a read and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment