Fixed document on function so IDEs will pick up the type better.