about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2021-02-04 12:22:01 -0800
committerEsteban Küber <esteban@kuber.com.ar>2021-02-21 16:27:29 -0800
commit796ce9fcb7e35767e6e57ad79099dcf730a0a94b (patch)
tree814022ec0b70d4bac52c677bf71dc54692fe4dea /library/std/src/sys/unix/stack_overflow.rs
parent3e826bb11228508fbe749e594038d6727208aa94 (diff)
downloadrust-796ce9fcb7e35767e6e57ad79099dcf730a0a94b.tar.gz
rust-796ce9fcb7e35767e6e57ad79099dcf730a0a94b.zip
Suggest `return`ing tail expressions that match return type
Some newcomers are confused by the behavior of tail expressions,
interpreting that "leaving out the `;` makes it the return value".
To help them go in the right direction, suggest using `return` instead
when applicable.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions