]> git.lizzy.rs Git - rust.git/commitdiff
core: Formatting fix in documentation for task::unkillable
authorBenjamin Herr <ben@0x539.de>
Mon, 9 Jul 2012 02:06:54 +0000 (04:06 +0200)
committerBenjamin Herr <ben@0x539.de>
Mon, 9 Jul 2012 03:02:05 +0000 (05:02 +0200)
src/libcore/task.rs

index abba0c6d7f7b63e2360552fad0c706c46e06e0de..6b871afa57d7115be1957a4e8dfccdbae46bf314 100644 (file)
@@ -528,13 +528,15 @@ fn get_task() -> task {
  *
  * # Example
  *
- *     task::unkillable {||
- *         // detach / yield / destroy must all be called together
- *         rustrt::rust_port_detach(po);
- *         // This must not result in the current task being killed
- *         task::yield();
- *         rustrt::rust_port_destroy(po);
- *     }
+ * ~~~
+ * task::unkillable {||
+ *     // detach / yield / destroy must all be called together
+ *     rustrt::rust_port_detach(po);
+ *     // This must not result in the current task being killed
+ *     task::yield();
+ *     rustrt::rust_port_destroy(po);
+ * }
+ * ~~~
  */
 unsafe fn unkillable(f: fn()) {
     class allow_failure {