mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 03:46:27 +00:00
Make the example a bit easier to understand, suggested by Jim.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7f2255505
commit
730e15eb74
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user