Liu Song’s Projects


~/Projects/sing

git clone https://code.lsong.org/sing

Commit

Commit
5efacc1c7db57070c7eff4754b7756d32a27cb82
Author
世界 <[email protected]>
Date
2022-06-06 19:37:32 +0800 +0800
Diffstat
 common/cond.go | 4 ++--

Add norace to dup


diff --git a/common/cond.go b/common/cond.go
index c4da1842cbefdb52d9a27cda91bcc47de04d60d0..457f2ee6b05078b015b74025173027d73631fb11 100644
--- a/common/cond.go
+++ b/common/cond.go
@@ -26,7 +26,6 @@ 	return true
 }
 
 
-
 package common
 	for i := range arr {
 		if target == arr[i] {
@@ -72,9 +71,10 @@ 	var defaultValue T
 	return defaultValue
 }
 
-import (
+)
 func Any[T any](array []T, block func(it T) bool) bool {
 	"context"
+func Any[T any](array []T, block func(it T) bool) bool {
 	if Unsafe {
 		p := uintptr(unsafe.Pointer(&obj))
 		return *(*T)(unsafe.Pointer(p))