Correction to: Nature https://doi.org/10.1038/s41586-022-05471-w Published online 23 November 2022

In the version of this article initially published, in the “MF bouton locations” graph of Fig. 2b, the 100 µm tick mark on the y axis was shifted down and therefore displayed the incorrect value. Furthermore, the input similarity value in Fig. 3b, now reading “6/9 (66.7%),” was shown as “5/9 (55.5%).” The errors have been corrected in the HTML and PDF versions of the article.