Skip to content

Commit

Permalink
auto merge of rust-lang#17019 : steveklabnik/rust/remove_compromise, …
Browse files Browse the repository at this point in the history
…r=thestinger

@dherman doesn't like it 😄
  • Loading branch information
bors committed Sep 7, 2014
2 parents c964cb2 + d929d83 commit 57781c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ This is a deliberate design decision. While full-program inference is possible,
languages which have it, like Haskell, often suggest that documenting your
types explicitly is a best-practice. We agree that forcing functions to declare
types while allowing for inference inside of function bodies is a wonderful
compromise between full inference and no inference.
sweet spot between full inference and no inference.

What about returning a value? Here's a function that adds one to an integer:

Expand Down

0 comments on commit 57781c3

Please sign in to comment.