angular/angular.js — pull request #9351 by Schlogen (2014-09-30 18:13:56+00:00)
Title: docs($q): Implement the same example for both usages

The current documentation has a `return` in the middle of nowhere and somewhat complicates the example with unnecessary code. This implements the same code as in the example for the other way of using $q in order to simplify the differences between them.