From: JINMEI Tatuya Date: Tue, 9 Apr 2013 23:46:59 +0000 (-0700) Subject: [2831] corrected example code in doc X-Git-Tag: bind10-1.2.0beta1-release~457^2~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecc1ba7e65eaa8371cfdd8b83946c6a3bc2e5ee8;p=thirdparty%2Fkea.git [2831] corrected example code in doc --- diff --git a/src/lib/util/memory_segment.h b/src/lib/util/memory_segment.h index c31e745e37..ae7bc91e2a 100644 --- a/src/lib/util/memory_segment.h +++ b/src/lib/util/memory_segment.h @@ -87,8 +87,8 @@ public: /// multiple calls to \c allocate(): /// /// \code - /// ComplicatedStuff* stuff; - /// while (true) { // this must eventually succeed or result in bad_alloc + /// ComplicatedStuff* stuff = NULL; + /// while (!stuff) { // this must eventually succeed or result in bad_alloc /// try { /// // create() is a factory method, takes a memory segment /// // and calls allocate() on it multiple times. create()