Fix some typos in docs and examples and make the code look nicer.
This commit is contained in:
parent
70801d47d1
commit
8985c34809
45 changed files with 717 additions and 717 deletions
|
|
@ -100,7 +100,7 @@ like this (shown for Python):
|
|||
</p>
|
||||
|
||||
<div class="targetlang"><pre>
|
||||
>>> a = add(3,4)
|
||||
>>> a = add(3, 4)
|
||||
>>> print a
|
||||
7
|
||||
>>>
|
||||
|
|
@ -148,7 +148,7 @@ For example, consider this code:
|
|||
%include "typemaps.i"
|
||||
%apply int *OUTPUT { int *width, int *height };
|
||||
|
||||
// Returns a pair (width,height)
|
||||
// Returns a pair (width, height)
|
||||
void getwinsize(int winid, int *width, int *height);
|
||||
</pre>
|
||||
</div>
|
||||
|
|
@ -158,7 +158,7 @@ In this case, the function returns multiple values, allowing it to be used like
|
|||
</p>
|
||||
|
||||
<div class="targetlang"><pre>
|
||||
>>> w,h = genwinsize(wid)
|
||||
>>> w, h = genwinsize(wid)
|
||||
>>> print w
|
||||
400
|
||||
>>> print h
|
||||
|
|
@ -245,7 +245,7 @@ When the function is used in the scripting language interpreter, it will work li
|
|||
</p>
|
||||
|
||||
<div class="targetlang"><pre>
|
||||
result = add(3,4)
|
||||
result = add(3, 4)
|
||||
</pre></div>
|
||||
|
||||
<H3><a name="Arguments_nn5">10.1.3 Output parameters</a></H3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue