Skip to content

Commit

Permalink
Fix UndocumentedDeclarationCheck linting issue in typecons.d (#9075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladiwostok authored Oct 27, 2024
1 parent 5e311c3 commit 354781f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion std/typecons.d
Original file line number Diff line number Diff line change
Expand Up @@ -5471,15 +5471,17 @@ nothrow pure @safe unittest
}
}

// / ditto
/// ditto
class NotImplementedError : Error
{
///
this(string method) nothrow pure @safe
{
super(method ~ " is not implemented");
}
}

///
@system unittest
{
import std.exception : assertThrown;
Expand Down Expand Up @@ -9798,6 +9800,7 @@ Flag!"encryption".no).
*/
struct Yes
{
///
template opDispatch(string name)
{
enum opDispatch = Flag!name.yes;
Expand All @@ -9808,6 +9811,7 @@ struct Yes
/// Ditto
struct No
{
///
template opDispatch(string name)
{
enum opDispatch = Flag!name.no;
Expand Down

0 comments on commit 354781f

Please sign in to comment.