fix full example in docs (closes #344)