docs: fixed code formatting in advanced pup example
authorAaron Becker <akbecker@gmail.com>
Wed, 25 Jul 2012 17:05:21 +0000 (12:05 -0500)
committerAaron Becker <akbecker@gmail.com>
Wed, 25 Jul 2012 17:05:38 +0000 (12:05 -0500)
doc/charm++/advancedpup.tex

index dcbce4c2ed1b71213ba2d8253c14c0722aa55940..c74d0ab718737323f2f44063a835d83a7abde2b9 100644 (file)
@@ -119,12 +119,12 @@ public:
       mySuperclass::pup(p);
       int has_f=(f!=NULL);
       p|has_f;
-      if (has_f) {
+      if (has_f) \{
         if (p.isUnpacking()) f=new foo;
         p|*f;
-      } else {
+      \} else \{
         f=NULL;
-      }
+      \}
     \}
     ~keepsNullFoo() \{delete f;\}
 \};