Fixed name of state generation function in docs

While playing with the library and reading the docs, I noticed the function in the Stdlib is called differently.