4 ms·
Yours is rendered as: A\n\tsimple\n\t\tformatted\n\t\t\tstring\n\t If you wanted it without the additional indentation, you’d need to use a function to strip
by rybosome 1y ago
Yours is rendered as:
A\n\tsimple\n\t\tformatted\n\t\t\tstring\n\t
If you wanted it without the additional indentation, you’d need to use a function to strip that out. Typescript has dedent which goes in front of the template string, for example. I guess in Zig that’s not necessary which is nice.
- deleted 1y ago[deleted]
- konart 1y agoOkay I get it now. Formatted multiline string in code without an actual formatting and no string concat.