Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

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 #5352
  • Loading branch information
kasoban authored and petebacondarwin committed Dec 18, 2013
1 parent a13c4ba commit 09f8962
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 09f8962

Please sign in to comment.