Fixing example code in rdoc