aboutsummaryrefslogtreecommitdiff
path: root/src/strings/strings_decl.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/strings_decl.go')
-rw-r--r--src/strings/strings_decl.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/strings/strings_decl.go b/src/strings/strings_decl.go
index 98194445e1..6718c3ace4 100644
--- a/src/strings/strings_decl.go
+++ b/src/strings/strings_decl.go
@@ -4,5 +4,7 @@
package strings
+//go:noescape
+
// IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s.
func IndexByte(s string, c byte) int // in internal/bytealg