Fix example of using `defrecord`
Merge pull request #2296 from alco/record-doc

Fix example of using `defrecord`