Skip to content

Commit 2fb15f6

Browse files
committed
remove references to HM inference
Fixes #17229.
1 parent 90304ed commit 2fb15f6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/doc/guide.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,10 @@ By the way, in these examples, `i` indicates that the number is an integer.
392392

393393
Rust is a statically typed language, which means that we specify our types up
394394
front. So why does our first example compile? Well, Rust has this thing called
395-
"[Hindley-Milner type
396-
inference](http://en.wikipedia.org/wiki/Hindley%E2%80%93Milner_type_system)",
397-
named after some really smart type theorists. If you clicked that link, don't
398-
be scared: what this means for you is that Rust will attempt to infer the types
399-
in your program, and it's pretty good at it. If it can infer the type, Rust
395+
"type inference." If it can figure out what the type of something is, Rust
400396
doesn't require you to actually type it out.
401397

402-
We can add the type if we want to. Types come after a colon (`:`):
398+
We can add the type if we want to, though. Types come after a colon (`:`):
403399

404400
```{rust}
405401
let x: int = 5;

0 commit comments

Comments
 (0)