Correction to: Nature Immunology https://doi.org/10.1038/s41590-019-0567-y, published online 23 December 2019.

In the version of this article initially published, affiliation 4 was shown as “Diamantina Institute, University of Queensland, Brisbane, Queensland, Australia”. The correct affiliation is “The University of Queensland Diamantina Institute, The University of Queensland, Brisbane, Queensland, Australia.” In Fig. 5d, the labels for the two panels were switched; the left panel should be labeled “IL-7 + IL-23” and the right panel should be labeled “IL-7.” The units for the concentrations of dibutyryl in this panel were reported as “nM”; however, they should be “μM.” In Fig. 5e, the concentrations of VIP and BAY 55-9837 were reported as 100 mM in the figure and the caption; however, the concentrations of both were 100 nM. In Fig. 5f, the concentration of VIP was reported as 100 mM; however, the concentration was 100 nM. The figure legend for the blue bar was “PG99-465 (1μM)”; the correct legend is “PG99-465 (1 μM) + VIP (100 nM).” In Extended Data Fig. 4, the figure title read “Frequency of lymphocytes in the small intestine of food-restricted mice.” The correct title is “Total number of lymphocytes in the small intestine of mixed bone-marrow chimeric mice.” The figure caption stated “Cells derived from wild-type (CD45.1+CD45.2+) bone marrow are indicated in red and cells from Arntl ΔIL–7R (CD45.2+/+) are shown in blue.” The caption should say “Cells derived from wild-type (CD45.1+CD45.2+) bone marrow are indicated in white and cells from Arntl ΔIL–7R (CD45.2+/+) are shown in black.” The errors have been corrected in the HTML and PDF versions of the article.