diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-09-13 14:38:53 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-09-15 13:23:31 -0400 |
| commit | b45853860c17937d966c94ca4b9b3d949eaffa67 (patch) | |
| tree | bd658025a651f458c9d3463265c74c7e636823e2 /src | |
| parent | df6240dc9e6e97a4310909fa84baca90608baa98 (diff) | |
| download | rust-b45853860c17937d966c94ca4b9b3d949eaffa67.tar.gz rust-b45853860c17937d966c94ca4b9b3d949eaffa67.zip | |
remove references to HM inference
Fixes #17229.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/guide.md | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index c769528c753..39da876ab85 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -392,14 +392,10 @@ By the way, in these examples, `i` indicates that the number is an integer. Rust is a statically typed language, which means that we specify our types up front. So why does our first example compile? Well, Rust has this thing called -"[Hindley-Milner type -inference](http://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system)", -named after some really smart type theorists. If you clicked that link, don't -be scared: what this means for you is that Rust will attempt to infer the types -in your program, and it's pretty good at it. If it can infer the type, Rust +"type inference." If it can figure out what the type of something is, Rust doesn't require you to actually type it out. -We can add the type if we want to. Types come after a colon (`:`): +We can add the type if we want to, though. Types come after a colon (`:`): ```{rust} let x: int = 5; |
