From f4225f83481f58dbfd48743d31f8dcb95d9a797d Mon Sep 17 00:00:00 2001 From: Teiva Harsanyi Date: Thu, 10 Nov 2022 11:36:51 +0100 Subject: [PATCH] Adding link to slice length/capacity --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13fbc47..3cd70a5 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Making floating-point comparisons within a given delta can ensure that your code When performing addition or subtraction, group the operations with a similar order of magnitude to favor accuracy. Also, perform multiplication and division before addition and subtraction. -#### Not understanding slice length and capacity (#20) +#### [Not understanding slice length and capacity](https://teivah.medium.com/slice-length-vs-capacity-in-go-af71a754b7d8) (#20) Understanding the difference between slice length and capacity should be part of a Go developer’s core knowledge. The slice length is the number of available elements in the slice, whereas the slice capacity is the number of elements in the backing array.