Skip to content

Commit

Permalink
Merge pull request go101#273 from yhliyr/fix-quizzes-slice-2-code
Browse files Browse the repository at this point in the history
fix quizzes slice-2 code error
  • Loading branch information
zigo101 authored Mar 1, 2024
2 parents 834e29a + ed6deb2 commit e79bc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/quizzes/slice-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>slice 2</h1>
var x = []string{"A", "B", "C"}

for i, s := range x {
print(i, s, " ")
print(i, s, ",")
x = append(x, "Z")
x[i+1] = "Z"
}
Expand Down

0 comments on commit e79bc02

Please sign in to comment.