From 9bb586689a1bcbe2c8bd71e957cae4cb7abba05b Mon Sep 17 00:00:00 2001 From: Adam MacBeth Date: Sun, 19 Feb 2023 00:27:56 -0800 Subject: [PATCH] Minor grammar fixes to type-inference.md (#437) --- src/basic-syntax/type-inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic-syntax/type-inference.md b/src/basic-syntax/type-inference.md index 2cc1960b..e658b0df 100644 --- a/src/basic-syntax/type-inference.md +++ b/src/basic-syntax/type-inference.md @@ -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: