corrected code example

I don't think `addAssets` is a method, right?