swap the examples of append_value/append_unique
authortnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 13:19:29 +0000 (13:19 +0000)
committertnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 13:19:29 +0000 (13:19 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@10843 f0382ac9-c320-0410-b3f0-b508d59f5a85

waflib/ConfigSet.py

index 541be85c682fc8a79f89d4011661e670bd451a74..15b3845f995dda5b7c889ef77fc91e28f8f6a0de 100644 (file)
@@ -203,7 +203,7 @@ class ConfigSet(object):
                Appends a value to the specified config key::
 
                        def build(bld):
-                               bld.env.append_unique('CFLAGS', ['-O2'])
+                               bld.env.append_value('CFLAGS', ['-O2'])
 
                The value must be a list or a tuple
                """
@@ -230,9 +230,9 @@ class ConfigSet(object):
                Append a value to the specified item only if it's not already present::
 
                        def build(bld):
-                               bld.env.append_value('CFLAGS', ['-O2', '-g'])
+                               bld.env.append_unique('CFLAGS', ['-O2', '-g'])
 
-               Note that there is no prepend_unique
+               The value must be a list or a tuple
                """
                if isinstance(val, str):
                        val = [val]