Skip to content
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

assert messages container dlist typo fix #7192

Merged
merged 1 commit into from
Sep 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions std/container/dlist.d
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ struct DList(T)
}
ref inout(BaseNode*) _first() @property @safe nothrow pure inout
{
assert(_root, "Root pointer most not be null");
assert(_root, "Root pointer must not be null");
return _root._next;
}
ref inout(BaseNode*) _last() @property @safe nothrow pure inout
{
assert(_root, "Root pointer most not be null");
assert(_root, "Root pointer must not be null");
return _root._prev;
}
} //end private
Expand Down Expand Up @@ -286,8 +286,7 @@ elements in `rhs`.
*/
struct Range
{
static assert(isBidirectionalRange!Range,
"Range is not a bidirectional range");
static assert(isBidirectionalRange!Range);

DRange _base;
alias _base this;
Expand Down