diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-22 16:11:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-22 16:11:46 +0000 |
| commit | 60aba18664f395d71d8f424a7e66eff363a16c29 (patch) | |
| tree | 1917a1a4919c8a2cfeb49e73ff9d8a196891c5bf /llvm/docs | |
| parent | ca0c0d7550759aba24bb45de1bce1a7c921fa11a (diff) | |
| download | bcm5719-llvm-60aba18664f395d71d8f424a7e66eff363a16c29.tar.gz bcm5719-llvm-60aba18664f395d71d8f424a7e66eff363a16c29.zip | |
Make the example a bit easier to understand, suggested by Jim.
llvm-svn: 22964
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/CommandLine.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/CommandLine.html b/llvm/docs/CommandLine.html index 83db04d6ed4..02a5707eec7 100644 --- a/llvm/docs/CommandLine.html +++ b/llvm/docs/CommandLine.html @@ -1714,7 +1714,7 @@ our example, we implement <tt>parse</tt> as:</p> <b>while</b> (1) { <b>switch</b> (*End++) { - <b>case</b> 0: <b>return</b> false; <i>// No error</i> + <b>case</b> 0: break; <i>// No error</i> <b>case</b> 'i': <i>// Ignore the 'i' in KiB if people use that</i> <b>case</b> 'b': <b>case</b> 'B': <i>// Ignore B suffix</i> <b>break</b>; @@ -1728,6 +1728,7 @@ our example, we implement <tt>parse</tt> as:</p> <b>return</b> O.error(": '" + Arg + "' value invalid for file size argument!"); } } + <b>return</b> false; } </pre></div> |

