-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix example for Object._set
documentation
#80475
Fix example for Object._set
documentation
#80475
Conversation
Maybe showing a real example of a fake property that actually does something useful would be good indeed. |
26ebb76
to
9848027
Compare
9848027
to
3ff25cc
Compare
a496b85
to
80904f9
Compare
If we add a more practical example, prints are probably not needed anymore. Can be kept as code comments instead (i.e. replace prints with |
80904f9
to
90160ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. My suggestion was addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The C# example looks good to me.
Thanks! |
Cherry-picked for 4.1.3. |
The method is supposed to return
true
if the property was set (interestingly the C# example is correct).Though I wonder if the example shouldn't be improved; it's technically incomplete, because a user might not know what to put instead of print.