Make the example a bit easier to understand, suggested by Jim.

llvm-svn: 22964
This commit is contained in:
Chris Lattner 2005-08-22 16:11:46 +00:00
parent ca0c0d7550
commit 60aba18664
1 changed files with 2 additions and 1 deletions

View File

@ -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>