From 0c5313dcf6743fba950541c8788b85c946c2e336 Mon Sep 17 00:00:00 2001 From: Prem Raj R Date: Wed, 22 Nov 2023 19:48:27 +0530 Subject: [PATCH] Fixed confusing colon in chapter 5-3 --- src/ch05-03-method-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch05-03-method-syntax.md b/src/ch05-03-method-syntax.md index d25e55b18c..472fc58b27 100644 --- a/src/ch05-03-method-syntax.md +++ b/src/ch05-03-method-syntax.md @@ -216,7 +216,7 @@ is `Rectangle`. To call this associated function, we use the `::` syntax with the struct name; `let sq = Rectangle::square(3);` is an example. This function is namespaced by -the struct: the `::` syntax is used for both associated functions and +the struct. The `::` syntax is used for both associated functions and namespaces created by modules. We’ll discuss modules in [Chapter 7][modules].