mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Add "random access" definition to ractool docs
This commit is contained in:
1 parent
874f5a1712
commit
f75a10a230
3 files changed
+27
-4
No files matched your search
+3
-3
@@ -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]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user