Skip to content

Commit

Permalink
Make Param.name immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zherikov committed Nov 1, 2024
1 parent 6e2e25b commit 235ffd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/argparse/param.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import argparse.config;
struct Param(VALUE_TYPE)
{
const(Config)* config;
string name;
immutable string name;

static if(!is(VALUE_TYPE == void))
VALUE_TYPE value;
Expand All @@ -21,5 +21,4 @@ unittest
{
RawParam p1;
auto p2 = p1;
p1 = p2;
}

0 comments on commit 235ffd0

Please sign in to comment.