From e35c0b71a8f0493b4d795b627c5620070dfb82f9 Mon Sep 17 00:00:00 2001 From: Samuel Moelius <35515885+smoelius@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:42:50 -0500 Subject: [PATCH] Fix typo in generic_types.md --- docs/book/src/advanced/generic_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/book/src/advanced/generic_types.md b/docs/book/src/advanced/generic_types.md index 3e3f623d950..af885589851 100644 --- a/docs/book/src/advanced/generic_types.md +++ b/docs/book/src/advanced/generic_types.md @@ -34,7 +34,7 @@ Important background to know before diving into trait constraints is that the `w want to specify that the generic argument implements a `Hash` trait. ```sway -fn get_hashmap_key(Key : T) -> b256 +fn get_hashmap_key(key: T) -> b256 where T: Hash { // Code within here can then call methods associated with the Hash trait on Key