let p: OpenPackage = Package::new();
let p: OpenPackage = package.insert([stuff, padding, padding]);
let p: ClosedPackage = package.seal_up();
// let p: OpenPackage = package.insert([more_stuff]);
//~^ ERROR: No method named `insert` on `ClosedPackage`
let p: DeliveryTracking = package.send(address, postage);
I think all the let p: … bits should be let package: …, shouldn't they?
Hi,
On https://deterministic.space/elegant-apis-in-rust.html, it looks like there's a small issue with a code example near the end:
I think all the
let p: …
bits should belet package: …
, shouldn't they?