From 94e5db7ddb69b366ab50a23e2db7492d44d67383 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Tue, 18 Jul 2023 12:41:27 +0200 Subject: [PATCH] Fix capitalization of Rust (#1007) --- src/basic-syntax/methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic-syntax/methods.md b/src/basic-syntax/methods.md index 9018a823..8f07cb91 100644 --- a/src/basic-syntax/methods.md +++ b/src/basic-syntax/methods.md @@ -39,7 +39,7 @@ fn main() { } ``` -- While _technically_, rust does not have custom constructors, static methods are commonly used to initialize structs (but don't have to). +- While _technically_, Rust does not have custom constructors, static methods are commonly used to initialize structs (but don't have to). The actual constructor, `Rectangle { width, height }`, could be called directly. See the [Rustnomicon](https://doc.rust-lang.org/nomicon/constructors.html). - Add a `Rectangle::new_square(width: u32)` constructor to illustrate that such static methods can take arbitrary parameters.