From 242887f0735558c76578ca07cacd81d5eb71ba15 Mon Sep 17 00:00:00 2001 From: Georges-Charles Brain Date: Tue, 10 Oct 2023 21:26:52 +0300 Subject: [PATCH] Update 2_intro_to_generics.md corrections after proofreading with Grammarly --- unit-three/lessons/2_intro_to_generics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit-three/lessons/2_intro_to_generics.md b/unit-three/lessons/2_intro_to_generics.md index edb4481..9c15a13 100644 --- a/unit-three/lessons/2_intro_to_generics.md +++ b/unit-three/lessons/2_intro_to_generics.md @@ -20,7 +20,7 @@ module generics::storage { } ``` -However, this type will only be able to hold a value of type `u64`, to make our `Box` able to hold any generic type, we will need to use generics. The code would be modified as following: +However, this type will only be able to hold a value of type `u64`. To make our `Box` able to hold any generic type, we will need to use generics. The code would be modified as follows: ```rust module generics::storage { @@ -73,7 +73,7 @@ This will only accept inputs of the type `u64` for the `create_box` method, whil #### Calling Functions with Generics -To call a function with a signature that contains generics, we must specify the type in square brackets, as in the following syntax: +To call a function with a signature that contains generics, we must specify the type in angle brackets, as in the following syntax: ```rust // value will be of type storage::Box