Add "random access" definition to ractool docs

This commit is contained in:
Nigel Tao committed 2019-08-24 15:41:35 +10:00
1 parent 874f5a1712
commit f75a10a230
3 files changed
+27 -4

No files matched your search

+3 -3
View File
@@ -41,13 +41,13 @@ func main1() error {
return err
}
if i := bytes.Index(src, []byte("Usage:\n\n")); i < 0 {
return fmt.Errorf(`couldn't find "Usage" sub-string`)
if i := bytes.Index(src, []byte("ractool manipulates ")); i < 0 {
return fmt.Errorf(`couldn't find documentation sub-string`)
} else {
src = src[i:]
}
if j := bytes.Index(src, []byte("*/")); j < 0 {
return fmt.Errorf(`couldn't find "Usage" sub-string`)
return fmt.Errorf(`couldn't find documentation sub-string`)
} else {
src = src[:j]
}