about summary refs log tree commit diff
path: root/library/std/src/sys/windows/stack_overflow_uwp.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-06-25 18:00:20 -0700
committerGitHub <noreply@github.com>2020-06-25 18:00:20 -0700
commit131e25401ca1b2b78d703c2eb5c5109d9664871e (patch)
tree5be091502d34046a48634458a25484369b26f67d /library/std/src/sys/windows/stack_overflow_uwp.rs
parentf91330abfa4771fe924a178210d2998adc1b77f3 (diff)
parentd8ea10c95fb5cf1674666fe4eae10ed761e2bfaa (diff)
downloadrust-131e25401ca1b2b78d703c2eb5c5109d9664871e.tar.gz
rust-131e25401ca1b2b78d703c2eb5c5109d9664871e.zip
Rollup merge of #73648 - poliorcetics:return-keyword, r=joshtriplett
Document the return keyword

Partial fix of #34601.

This documents the `return` keyword with two short example to explain it is not needed for the last expression in a function and a long example to show its use when interrupting a function execution early.

I did not put a link to the reference since the only link I found was https://doc.rust-lang.org/stable/reference/expressions/return-expr.html#return-expressions.

@rustbot modify labels: T-doc,C-enhancement
Diffstat (limited to 'library/std/src/sys/windows/stack_overflow_uwp.rs')
0 files changed, 0 insertions, 0 deletions