From 09f8962df2131cad446b207a6ab0551c8acd31d0 Mon Sep 17 00:00:00 2001 From: oweitz Date: Tue, 10 Dec 2013 13:37:28 +0100 Subject: [PATCH] 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 --- src/ngResource/resource.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index a007c7b16d4e..dedbf8607acd 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -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); * * @@ -273,7 +273,6 @@ function shallowClearAndCopy(src, dst) { }); - * @example * # Creating a custom 'PUT' request * In this example we create a custom method on our resource to make a PUT request *