From 547a9f23f7960de0601b3f325768d58dae3ef5ec Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Wed, 14 Nov 2018 14:55:05 +0100 Subject: Zig fmt --- src/index.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/index.zig') diff --git a/src/index.zig b/src/index.zig index 5900424..225eb9c 100644 --- a/src/index.zig +++ b/src/index.zig @@ -91,11 +91,10 @@ pub fn Param(comptime Id: type) type { return init(id, true, Names{ .short = null, .long = null }); } - fn init(id: Id, takes_value: bool, names: Names) @This() { + pub fn init(id: Id, takes_value: bool, names: Names) @This() { // Assert, that if the param have no name, then it has to take // a value. - debug.assert( - names.long != null or + debug.assert(names.long != null or names.short != null or takes_value); -- cgit v1.2.3