diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-05-27 09:49:54 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-05-27 14:47:21 -0400 |
| commit | 0d5fdce82e1e09df96ea2ee190e9fffd91b2c714 (patch) | |
| tree | 3a003da2cb972550f937356f803fa6461ff8f56c /src/libextra/sync.rs | |
| parent | 3941f78a1bfb3ecf077dd782e5d03ea7fafcad86 (diff) | |
| download | rust-0d5fdce82e1e09df96ea2ee190e9fffd91b2c714.tar.gz rust-0d5fdce82e1e09df96ea2ee190e9fffd91b2c714.zip | |
syntax highlight code examples in docstrings
Diffstat (limited to 'src/libextra/sync.rs')
| -rw-r--r-- | src/libextra/sync.rs | 5 |
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 ... |
