A software defect could be either a code or documentation error.