core: Formatting fix in documentation for task::unkillable
This commit is contained in:
@@ -528,13 +528,15 @@ fn get_task() -> task {
|
|||||||
*
|
*
|
||||||
* # Example
|
* # Example
|
||||||
*
|
*
|
||||||
* task::unkillable {||
|
* ~~~
|
||||||
* // detach / yield / destroy must all be called together
|
* task::unkillable {||
|
||||||
* rustrt::rust_port_detach(po);
|
* // detach / yield / destroy must all be called together
|
||||||
* // This must not result in the current task being killed
|
* rustrt::rust_port_detach(po);
|
||||||
* task::yield();
|
* // This must not result in the current task being killed
|
||||||
* rustrt::rust_port_destroy(po);
|
* task::yield();
|
||||||
* }
|
* rustrt::rust_port_destroy(po);
|
||||||
|
* }
|
||||||
|
* ~~~
|
||||||
*/
|
*/
|
||||||
unsafe fn unkillable(f: fn()) {
|
unsafe fn unkillable(f: fn()) {
|
||||||
class allow_failure {
|
class allow_failure {
|
||||||
|
|||||||
Reference in New Issue
Block a user