Fix typo
This commit is contained in:
brent saner
2026-09-04 04:15:33 -04:00
parent f002766c74
commit cd9b967306
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
package slicesx
import (
`slices`
"slices"
)
/*
@@ -26,10 +26,10 @@ FirstIndex returns the index of the first element in slice s.
While at first glance this may seem useless, it may have some usecases as instead of causing panics:
* If s is empty, idx will be -1.
* If s is nil, idx will be -2.
* Otherwise idx will ALWAYS be 0.
*/_
- If s is empty, idx will be -1.
- If s is nil, idx will be -2.
- Otherwise idx will ALWAYS be 0.
*/
func FirstIndex[S ~[]E, E any](s S) (idx int) {
if s == nil {
+1 -1
View File
@@ -636,7 +636,7 @@ pre.rouge .gs {
<div class="details">
<span id="author" class="author">Brent Saner</span><br>
<span id="email" class="email"><a href="mailto:bts@square-r00t.net">bts@square-r00t.net</a></span><br>
<span id="revdate">Last rendered 2026-09-03 16:25:31 -0400</span>
<span id="revdate">Last rendered 2026-09-04 04:15:33 -0400</span>
</div>
<div id="toc" class="toc2">
<div id="toctitle">Table of Contents</div>
+1 -1
View File
@@ -6,7 +6,7 @@
<span id="author" class="author">Brent Saner</span>\
<span id="email" class="email"><bts@square-r00t.net></span>\
<span id="revdate">Last rendered 2026-09-03 16:25:36 -0400</span>
<span id="revdate">Last rendered 2026-09-04 04:15:38 -0400</span>
</div>