diff --git a/src/doc/guide.md b/src/doc/guide.md index 73f05d77555..e4bb3ae6ba6 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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: