Skip to content

Comment on Rustlang Ownership: Visual Analogyparent

Comments

Despite the little cop picture there's no requirement there to 'return ownership'. It's more like saying I'll gives you a doc provided you agree to give me a doc.

It seems that &mut fits better there.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.