=doc fixed typo in scaladoc, and => an

Thanks @geoffjentry for spotting this :-)