Correction to: Nature https://doi.org/10.1038/s41586-025-08747-z Published online 2 April 2025

In the version of the article initially published, in the Fig. 1 caption, the text “Scale bars, 5 nm (c,d); 2 nm (e)” should have read “Scale bars, 2 nm (c,e), 5 nm (d)”. The x axis of Fig. 4a originally read “30, 30, 80, 104, 114, Slab” and has now been corrected to “30, 52, 80,104, 114 and slab”. In the reaction step (vi) in Fig. 4e, “C2H2*” has been corrected to “C2H4*”. These corrections have been made to the HTML and PDF versions of the article.