Skip to content

Commit

Permalink
update blog
Browse files Browse the repository at this point in the history
  • Loading branch information
kitparl committed Nov 26, 2024
1 parent 7bf24c6 commit 8db4833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/blog/Go-Battle-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ title: Go Battle concepts

# Content

1. [Arrays and Slices](#Arrays-and-Slices)
2. [Length vs Capacity](#Length-vs-Capacity)
1. [Arrays and Slices](#arrays-and-slices)
2. [Length vs Capacity](#length-vs-capacity)

## Arrays and Slices

Expand All @@ -35,7 +35,7 @@ matrix := [2][3]int{{1, 2, 3}, {4, 5, 6}} // Multi-dimensional array

// Slice declaration
var scores []int // Zero-value slice (nil)
names := []string{"Alice", "Bob", "Charlie"} // Create slice with values
names := []string{"Pranshu", "Hritik", "Amit"} // Create slice with values
numbers := make([]int, 5) // Create slice with length 5
numbers := make([]int, 5, 10) // Create slice with length 5, capacity 10
```
Expand Down

0 comments on commit 8db4833

Please sign in to comment.