diff --git a/docs/datastructure/copyonwritelist.md b/docs/datastructure/copyonwritelist.md index c2b25ec..902d3b6 100644 --- a/docs/datastructure/copyonwritelist.md +++ b/docs/datastructure/copyonwritelist.md @@ -1,7 +1,6 @@ # CopyOnWriteList -CopyOnWriteList is a thread-safe list implementation that uses go slicing as its base. -. When writing, a new slice is copied and assigned to the original slice when writing is complete.When reading, the original slice is read directly. +CopyOnWriteList is a thread-safe list implementation that uses go slicing as its base. When writing, a new slice is copied and assigned to the original slice when writing is complete. When reading, the original slice is read directly. ## 源码 diff --git a/docs/datastructure/copyonwritelist_zh-CN.md b/docs/datastructure/copyonwritelist_zh-CN.md index 03e8b49..6a6d7c6 100644 --- a/docs/datastructure/copyonwritelist_zh-CN.md +++ b/docs/datastructure/copyonwritelist_zh-CN.md @@ -1,8 +1,6 @@ # CopyOnWriteList -CopyOnWriteList 是一个线程安全的 List 实现,底层使用 go 切片 -.在写入时,会复制一份新的切片,写入完成后,再将新的切片赋值给原来的切片. -在读取时,直接读取原来的切片 +CopyOnWriteList 是一个线程安全的 List 实现,底层使用 go 切片。写入时,会复制一份新的切片,写入完成后,再将新的切片赋值给原来的切片。读取时,直接读取原来的切片。 ## 源码