docs: change example to show both methods