Update $resource documentation

Added closing pre tag