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

Commit 09f8962

Browse files
kasobanpetebacondarwin
authored andcommitted
docs($resource): fix typo in server response example
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
1 parent a13c4ba commit 09f8962

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ngResource/resource.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function shallowClearAndCopy(src, dst) {
237237
newCard.name = "Mike Smith";
238238
newCard.$save();
239239
// POST: /user/123/card {number:'0123', name:'Mike Smith'}
240-
// server returns: {id:789, number:'01234', name: 'Mike Smith'};
240+
// server returns: {id:789, number:'0123', name: 'Mike Smith'};
241241
expect(newCard.id).toEqual(789);
242242
* </pre>
243243
*
@@ -273,7 +273,6 @@ function shallowClearAndCopy(src, dst) {
273273
});
274274
</pre>
275275
276-
* @example
277276
* # Creating a custom 'PUT' request
278277
* In this example we create a custom method on our resource to make a PUT request
279278
* <pre>

0 commit comments

Comments
 (0)