about summary refs log tree commit diff
path: root/src/libextra/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libextra/sync.rs')
-rw-r--r--src/libextra/sync.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libextra/sync.rs b/src/libextra/sync.rs
index 9e0ebc02221..5768b015ab1 100644
--- a/src/libextra/sync.rs
+++ b/src/libextra/sync.rs
@@ -545,7 +545,10 @@ pub impl RWlock {
      * the meantime (such as unlocking and then re-locking as a reader would
      * do). The block takes a "write mode token" argument, which can be
      * transformed into a "read mode token" by calling downgrade(). Example:
-     * ~~~
+     *
+     * # Example
+     *
+     * ~~~ {.rust}
      * do lock.write_downgrade |write_mode| {
      *     do (&write_mode).write_cond |condvar| {
      *         ... exclusive access ...