Skip to content

Commit

Permalink
Minor improvement to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Feb 27, 2018
1 parent 8e90d7b commit c9ad46f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webcore/promise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ impl Promise {
/// * Keep the [`DoneHandle`](struct.DoneHandle.html) alive until after the `callback` is called (by storing it in a
/// variable or data structure).
///
/// * Use the [`leak`](https://docs.rs/discard/1.*/discard/struct.DiscardOnDrop.html#method.leak) function to leak the
/// * Use the [`DiscardOnDrop::leak`](https://docs.rs/discard/1.*/discard/struct.DiscardOnDrop.html#method.leak) function to leak the
/// [`DoneHandle`](struct.DoneHandle.html). If the `Promise` never succeeds or fails then this ***will*** leak the
/// memory of the callback, so only use [`leak`](https://docs.rs/discard/1.*/discard/struct.DiscardOnDrop.html#method.leak)
/// memory of the callback, so only use [`DiscardOnDrop::leak`](https://docs.rs/discard/1.*/discard/struct.DiscardOnDrop.html#method.leak)
/// if you need to.
///
/// # Examples
Expand Down

0 comments on commit c9ad46f

Please sign in to comment.