Tweaked Scaladoc for trap.