mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
📝 fix incorrect function comments (#16719)
This commit is contained in:
parent
f7822b5b3e
commit
4132736037
2 changed files with 3 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ func RandString(length int) string {
|
|||
return string(b)
|
||||
}
|
||||
|
||||
// InsertElem inserts value at index into a.
|
||||
// InsertElem inserts value at index into s.
|
||||
// 0 <= index <= len(s)
|
||||
func InsertElem[T any](s []T, index int, value T) []T {
|
||||
if len(s) == index { // nil or empty slice or after last element
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue