From 7f6a281d92955929d7edd70a6a8b78b0d7d1c720 Mon Sep 17 00:00:00 2001 From: Tom Van Eyck Date: Sun, 30 Oct 2016 22:24:45 +0000 Subject: [PATCH] Add missing 'like' --- src/ch05-01-method-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch05-01-method-syntax.md b/src/ch05-01-method-syntax.md index 737aac690..41b36229a 100644 --- a/src/ch05-01-method-syntax.md +++ b/src/ch05-01-method-syntax.md @@ -209,7 +209,7 @@ impl Rectangle { ``` To call this associated function, we use the `::` syntax with the struct name: -`let sq = Rectange::square(3);`, for example. It's kind of this function is +`let sq = Rectange::square(3);`, for example. It's kind of like this function is namespaced by the struct: the `::` syntax is used for both associated functions and namespaces created by modules, which we'll learn about in Chapter 7.