[ 
https://issues.apache.org/jira/browse/SLING-8686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925468#comment-16925468
 ] 

Robert Munteanu commented on SLING-8686:
----------------------------------------

Good catch [~thomasmorf]. Can you send a PR so we can properly attribute the 
fix to you? The file to modify is at 
https://github.com/apache/sling-site/blob/master/src/main/jbake/content/documentation/the-sling-engine/sling-api-crud-support.md
 .

> Example code variable name wrong in Sling API CRUD, updating a property
> -----------------------------------------------------------------------
>
>                 Key: SLING-8686
>                 URL: https://issues.apache.org/jira/browse/SLING-8686
>             Project: Sling
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Thomas Morf
>            Priority: Trivial
>
> On the page: 
> [https://sling.apache.org/documentation/the-sling-engine/sling-api-crud-support.html#updating-a-property]
>  
> Paragraph: 
> *Sling API CRUD*
>  
> The variable name myNode in the code example should probably be "myResource", 
> if I understand the intention of the code correctly.
>  
> Resource myResource = resourceResolver.getResource("/myresource"); 
> ModifiableValueMap properties = **myNode**.adaptTo(ModifiableValueMap.class);



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to