1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-16 15:45:42 +02:00

Minor grammar fixes to type-inference.md (#437)

This commit is contained in:
Adam MacBeth 2023-02-19 00:27:56 -08:00 committed by GitHub
parent e6d6ee28fe
commit 9bb586689a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ This slide demonstrates how the Rust compiler infers types based on constraints
It is very important to emphasize that variables declared like this are not of some sort of dynamic "any type" that can
hold any data. The machine code generated by such declaration is identical to the explicit declaration of a type.
The compiler does the job for us and helps us to write a more concise code.
The compiler does the job for us and helps us write more concise code.
The following code tells the compiler to copy into a certain generic container without the code ever explicitly specifying the contained type, using `_` as a placeholder: