diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-02-04 12:22:01 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2021-02-21 16:27:29 -0800 |
| commit | 796ce9fcb7e35767e6e57ad79099dcf730a0a94b (patch) | |
| tree | 814022ec0b70d4bac52c677bf71dc54692fe4dea /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 3e826bb11228508fbe749e594038d6727208aa94 (diff) | |
| download | rust-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
