Skip to content

Commit

Permalink
docs:精简内容
Browse files Browse the repository at this point in the history
  • Loading branch information
dablelv committed Nov 21, 2024
1 parent beea123 commit 718d7c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 第五篇:安全编码/安全编码.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 1.内存管理

## 切片长度校验
操作 slice 时,必须判断长度是否合法,防止程序 panic。
操作 slice 必须判断长度是否合法,防止 panic。
```go
// bad: slice bounds out of range
func foo(slice []int){
Expand Down

0 comments on commit 718d7c3

Please sign in to comment.