doc: Fixes for the talloc destructor tutorial.
authorAndreas Schneider <asn@samba.org>
Mon, 7 May 2012 09:30:06 +0000 (11:30 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 7 May 2012 17:20:29 +0000 (19:20 +0200)
lib/talloc/doc/tutorial_destructors.dox

index 178f4cc4a852506598cfe09a6efa11680825459d..ed063876a30257b967be793f6c46c2938c54d3cf 100644 (file)
@@ -1,5 +1,6 @@
 /**
 @page libtalloc_destructors Chapter 4: Using destructors
+
 @section destructors Using destructors
 
 Destructors are well known methods in the world of object oriented programming.
@@ -10,7 +11,7 @@ deallocating memory).
 
 With talloc we can take the advantage of destructors even in C. We can easily
 attach our own destructor to a talloc context. When the context is freed, the
-destructor is run automatically.
+destructor will run automatically.
 
 To attach/detach a destructor to a talloc context use: talloc_set_destructor().
 
@@ -34,8 +35,8 @@ int list_remove(void *ctx)
 }
 @endcode
 
-GCC3+ can check for the types during the compilation. So if it is
-our major compiler, we can use a little bit nicer destructor:
+GCC version 3 and newer can check for the types during the compilation. So if
+it is our major compiler, we can use a more advanced destructor:
 
 @code
 int list_remove(struct list_el *el)
@@ -78,4 +79,4 @@ struct list_el* list_insert_free(TALLOC_CTX *mem_ctx,
 }
 @endcode
 
-*/
\ No newline at end of file
+*/