bugGNU Octave - Bugs: bug #58607, Off-by-one Error in documentation

 
 

bug #58607: Off-by-one Error in documentation

Submitter:  Martin Castillo <castilma>
Submitted:  Wed 17 Jun 2020 03:15:23 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Jun 2020 09:42:41 PM UTC, comment #1: 

Thanks for catching this.  I checked in a slightly different fix here which makes the who example easier to read, and accurate.  See https://hg.savannah.gnu.org/hgweb/octave/rev/a7fcdac012d8.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 17 Jun 2020 03:15:23 PM UTC, original submission:  

The for loop needs to be
for 1:length(A)-1

in Vectorization and Faster Code Execution ->  Examples (see [1])



[1]: https://hg.savannah.gnu.org/hgweb/octave/file/3a05402adef6/doc/interpreter/vectorize.txi#l698


Martin Castillo <castilma>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by castilma (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-17 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Release5.2.0 6.0.90

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code