Skip to content

Commit

Permalink
docs($resource): fix typo in server response example
Browse files Browse the repository at this point in the history
The server is supposed to return the same card number as in the client request.
Adjust server response example to the value given in the client request.

Closes angular#5352
  • Loading branch information
kasoban authored and jamesdaily committed Jan 27, 2014
1 parent b65b3cb commit 19eb6a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ngResource/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function shallowClearAndCopy(src, dst) {
newCard.name = "Mike Smith";
newCard.$save();
// POST: /user/123/card {number:'0123', name:'Mike Smith'}
// server returns: {id:789, number:'01234', name: 'Mike Smith'};
// server returns: {id:789, number:'0123', name: 'Mike Smith'};
expect(newCard.id).toEqual(789);
* </pre>
*
Expand Down Expand Up @@ -273,7 +273,6 @@ function shallowClearAndCopy(src, dst) {
});
</pre>
* @example
* # Creating a custom 'PUT' request
* In this example we create a custom method on our resource to make a PUT request
* <pre>
Expand Down

0 comments on commit 19eb6a1

Please sign in to comment.