Skip to content

Commit

Permalink
SLING-8686: Documentation code variable name wrong
Browse files Browse the repository at this point in the history
Documentation code variable name wrong in Sling API CRUD code example
  • Loading branch information
thomasmorf authored and rombert committed Oct 14, 2019
1 parent 69a6311 commit 69c363c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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();
Expand Down

0 comments on commit 69c363c

Please sign in to comment.