Possible typo

Of course, type could not be mutable. Did you mean "data"?