From: Vadim Zeitlin Date: Fri, 4 Nov 2011 17:41:20 +0000 (+0000) Subject: Correct the misleading example of using id ranges in XRC documentation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e2623304afca82cf06c681ff33ae2cd67e138ba3 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 --- diff --git a/docs/doxygen/overviews/xrc_format.h b/docs/doxygen/overviews/xrc_format.h index bd7f0e659b..677bb9e83f 100644 --- a/docs/doxygen/overviews/xrc_format.h +++ b/docs/doxygen/overviews/xrc_format.h @@ -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