r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
403 stars 56 forks source link

Usage of `<<-` vs `<-` in inheritance docs #206

Closed ras44 closed 4 years ago

ras44 commented 4 years ago

In the inheritance section of the docs, private variables are set with <<- instead of <-. I'm not sure why that is and I was unable to find explanations for why in the docs. I reproduced with <- and was able to produce the same result, though I'm also unsure if that's more correct. Would greatly appreciate your insights!

wch commented 4 years ago

That's a mistake - thanks for pointing it out.

wch commented 4 years ago

Fixed in 949b4fc4.