Correct the misleading example of using id ranges in XRC documentation.

"range[end]" is the last id in the range, inclusive, not the first id after it
so any loops iterating over all ids in the range should cover it as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2011-11-04 17:41:20 +00:00
parent d265ec6b0e
commit e2623304af

View File

@ -2147,7 +2147,7 @@ Whether a range has positive or negative IDs, [start] is always a smaller
number than [end]; so code like this works as expected:
@code
for (int n=XRCID("foo[start]"); n < XRCID("foo[end]"); ++n)
for (int n=XRCID("foo[start]"); n <= XRCID("foo[end]"); ++n)
...
@endcode