| author | |
| committer | |
| log | 25051832b37bab8d945e6284899a4c916ae00ada |
| tree | 05e8cdd4f5c026e665b9f79188805d99926ae464 |
| parent | d972d1c9428f7ee762462dd0f074b6db6896790f |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 3 insertions(+), 0 deletions(-)
lib/std/fmt.zig+3| ... | ... | @@ -94,6 +94,9 @@ pub fn format( |
| 94 | 94 | args: var, |
| 95 | 95 | ) Errors!void { |
| 96 | 96 | const ArgSetType = @IntType(false, 32); |
| 97 | if (@typeInfo(@TypeOf(args)) != .Struct) { | |
| 98 | @compileError("Expected tuple or struct argument, found " ++ @typeName(@TypeOf(args))); | |
| 99 | } | |
| 97 | 100 | if (args.len > ArgSetType.bit_count) { |
| 98 | 101 | @compileError("32 arguments max are supported per format call"); |
| 99 | 102 | } |