8000 updates code · Abhicodeitout/GolangTraining@f128f1a · GitHub
[go: up one dir, main page]

Skip to content

Commit f128f1a

Browse files
committed
updates code
1 parent de63482 commit f128f1a

File tree

1 file changed

+2
-0
lines changed
  • 19_map/14_hash-table/03_words-in-buckets/01_slice-bucket

1 file changed

+2
-0
lines changed

19_map/14_hash-table/03_words-in-buckets/01_slice-bucket/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ You don't even need this entire chunk of code ...
8585
buckets := make([][]string, 12)
8686
8787
... creates a slice holding a []string, but it doesn't yet have a len or cap, so later I use append which is how you add an item to a slice in a position that does not yet have an item (beyond its current len).
88+
89+
Thank you to Lee Trent for pointing this out!
8890
*/

0 commit comments

Comments
 (0)
0