patchGNU Octave - Patches: patch #7915, "help endwhile" shows...

 
 

patch #7915: "help endwhile" shows "See `while' for an example" but there was no example

Submitter:  Andreas Weber <andy1978>
Submitted:  Sun 06 Jan 2013 04:31:46 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  carandraug Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 06 Jan 2013 10:04:52 PM UTC, comment #1: 

Thank you. I have just pushed changeset 5a4a07a2ec73 to fix this.

Do take a look at the file libinterp/interpfcn/help.cc. We could definitely do with more examples and improved help text for the keywords there.

Carnë Draug <carandraug>
Group Member
Sun 06 Jan 2013 04:31:46 PM UTC, original submission:  

extended help text


 -- Keyword:  while
     Begin a while loop.

          i = 0;
          while (i < 10)
            i++
          endwhile

     *See also:* do.



 -- Keyword:  do
     Begin a do-until loop.  This differs from a do-while loop in that
     the body of the loop is executed at least once.

          i = 0;
          do
            i++
          until (i == 10)

     *See also:* while.




Andreas Weber <andy1978>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #27208:  while_do_example.diff added by andy1978 (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by andy1978 (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 logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-06 carandraug StatusNone Done
        Assigned toNone carandraug
        Open/ClosedOpen Closed
    2013-01-06 andy1978 Attached File- Added while_do_example.diff, #27208

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code