You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/10/14 10:22:13 UTC

[sling-site] branch master updated: SLING-8686: Documentation code variable name wrong

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 69c363c  SLING-8686: Documentation code variable name wrong
69c363c is described below

commit 69c363c14e2914dc7fc9ab1ab08ca0498d34f7f3
Author: Thomas Morf <th...@gmail.com>
AuthorDate: Sat Oct 5 02:13:49 2019 +0200

    SLING-8686: Documentation code variable name wrong
    
    Documentation code variable name wrong in Sling API CRUD code example
---
 .../content/documentation/the-sling-engine/sling-api-crud-support.md    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md b/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
index 3a269e0..eba4789 100644
--- a/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
+++ b/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
@@ -37,7 +37,7 @@ Update /myresource, setting the title and body:
 **Sling API CRUD**
 
     Resource myResource = resourceResolver.getResource("/myresource");
-    ModifiableValueMap properties = myNode.adaptTo(ModifiableValueMap.class);
+    ModifiableValueMap properties = myResource.adaptTo(ModifiableValueMap.class);
     properties.put("title", {TITLE});
     properties.put("body", {BODY});
     resourceResolver.commit();