[ 
https://issues.apache.org/jira/browse/SLING-8686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashok Pelluru resolved SLING-8686.
----------------------------------
    Resolution: Fixed

closing the story since PR already merged

> 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
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.20.7#820007)

Reply via email to