rename var in setget section to avoid confusion (#1724)
* rename var in setget section to avoid confusion
changed my_var to myvar so that example actually compilable and doesn't cause a confusion to the shallow reader
* rename the declaration variable instead