update setLength documentation to reflect code