Index: doc/example-scripts/traits-simple.tcl =================================================================== diff -u -r444fa56b72c6d35bd3cbbe46a44b12a4ea33088f -r6ad7855cd7aba089f7a160293802e1639d0d6198 --- doc/example-scripts/traits-simple.tcl (.../traits-simple.tcl) (revision 444fa56b72c6d35bd3cbbe46a44b12a4ea33088f) +++ doc/example-scripts/traits-simple.tcl (.../traits-simple.tcl) (revision 6ad7855cd7aba089f7a160293802e1639d0d6198) @@ -45,13 +45,13 @@ } # Define the class +ReadStream+ with properties +position+ and -# +collection+ that uses the trait. The method +useTrait+ checks the +# +collection+ that uses the trait. The method +require trait+ checks the # requirements of the trait and imports the methods into +ReadStream+. nx::Class create ReadStream { :property {collection ""} :property {position 0} - :useTrait TReadStream + :require trait TReadStream } # Create an instance of the class +ReadStream+: