Skip to content

Commit

Permalink
Print the empty bytes constructor without parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
skrah committed Jan 10, 2018
1 parent 9423906 commit d68077b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libndtypes/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ datashape(buf_t *buf, const ndt_t *t, int d, ndt_context_t *ctx)

case Bytes: {
if (t->Bytes.target_align == 1) {
n = ndt_snprintf(ctx, buf, "bytes()");
n = ndt_snprintf(ctx, buf, "bytes");
}
else {
n = ndt_snprintf(ctx, buf, "bytes(align=%" PRIu8 ")", t->Bytes.target_align);
Expand Down

0 comments on commit d68077b

Please sign in to comment.