doc change for generated code and nil instead of []Type{}