Explain what this snippet does and link to the doc