samples/ed.md: revise API conventions