core: Formatting fix in documentation for task::unkillable

This commit is contained in:
Benjamin Herr
2012-07-09 04:06:54 +02:00
parent 2dae18234d
commit b91358458b

View File

@@ -528,6 +528,7 @@ fn get_task() -> task {
* *
* # Example * # Example
* *
* ~~~
* task::unkillable {|| * task::unkillable {||
* // detach / yield / destroy must all be called together * // detach / yield / destroy must all be called together
* rustrt::rust_port_detach(po); * rustrt::rust_port_detach(po);
@@ -535,6 +536,7 @@ fn get_task() -> task {
* task::yield(); * task::yield();
* rustrt::rust_port_destroy(po); * rustrt::rust_port_destroy(po);
* } * }
* ~~~
*/ */
unsafe fn unkillable(f: fn()) { unsafe fn unkillable(f: fn()) {
class allow_failure { class allow_failure {