-
-
Notifications
You must be signed in to change notification settings - Fork 746
Tweak std.internal.scopebuffer docs #5027
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
Conversation
* Fix ddoc for commented out `this(this)` showing in `put`'s docs. * Fix missing ddoc for `put(CT[])` due to private `CT`. * Use documented unittest for scopeBuffer instead of inline code.
| /**************************** | ||
| * Copying of ScopeBuffer is not allowed. | ||
| */ | ||
| //@disable this(this); |
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.
Why not just delete the docs and the commented out code here
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.
now done
| * $(D const(T)[]) as input. It will accept a $(D T[]) otherwise. | ||
| */ | ||
| private alias CT = Select!(is(const(T) : T), const(T), T); | ||
| package alias CT = Select!(is(const(T) : T), const(T), T); |
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.
rationale?
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.
CT has the docs for the following put, which uses ditto. As CT is private, ddoc ignores its docs and the ditto makes put(CT[]) ditto the first overload of put. (Maybe ddoc could be changed to be more helpful here).
JackStouffer
left a comment
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.
+27 −36 :)
|
Auto-merge toggled on |
reallocparameter.this(this)concatenated intoput's docs.put(CT[])due to privateCT.