From e2623304afca82cf06c681ff33ae2cd67e138ba3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 4 Nov 2011 17:41:20 +0000 Subject: [PATCH] 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 --- docs/doxygen/overviews/xrc_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0