Fix grammaro, indent example code.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Jul 2010 01:19:06 +0000 (01:19 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Jul 2010 01:19:06 +0000 (01:19 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33641 f5534014-38df-0310-8fa8-9805f1628bb7

doc/README.developer

index ba94c68b5ff02cd54aba78f8fa3e9b36ab952be5..86ac925989a101aab45283ff989b331e54c42253 100644 (file)
@@ -100,15 +100,16 @@ Don't declare variables in the middle of executable code; not all C
 compilers support that.  Variables should be declared outside a
 function, or at the beginning of a function or compound statement.
 
-Don't use anonymous unions; not all compilers support it.
+Don't use anonymous unions; not all compilers support them.
 Example:
-typedef struct foo {
-  guint32 foo;
-  union {
-    guint32 foo_l;
-    guint16 foo_s;
-  } u;  /* have a name here */
-} foo_t;
+
+       typedef struct foo {
+         guint32 foo;
+         union {
+           guint32 foo_l;
+           guint16 foo_s;
+         } u;  /* have a name here */
+       } foo_t;
 
 Don't use "uchar", "u_char", "ushort", "u_short", "uint", "u_int",
 "ulong", "u_long" or "boolean"; they aren't defined on all platforms.