#27 Minor doc bug (expr non-zero example)

closed-fixed
None
5
2012-02-19
2011-01-11
grahamm78
No

The tool is great, very useful!

I noticed a minor documentation bug in the example in /doc/ht.texi and on the online http://hte.sourceforge.net/doc.html. Most users of the tool probably know better anyway, but may be good to fix.

- the search as written would actually search for 3 descending bytes, ie CBA
- 2nd clause has an extra open parenthesis so it fails with syntax error

Current text:

@item
Enter @code{(readbyte(o) == readbyte(o+1)+1) && ((readbyte(o)==readbyte(o+2)+2)}@*
This will search for three ascending bytes ("ABC", "123", etc).
@end enumerate

====

Suggested fix

Enter @code{(readbyte(o) == readbyte(o+1)-1) && (readbyte(o)==readbyte(o+2)-2)}@*

Discussion

  • Sebastian Biallas

    Thanks! Fixed in CVS.

     
  • Sebastian Biallas

    • assigned_to: nobody --> seppel
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks