Resistance calculator: Difference between revisions
m
→{{header|Zig}}: writer.print() is void (no return value)
Recombinant (talk | contribs) (→{{header|Zig}}: Correct postfix/infix order) |
Recombinant (talk | contribs) m (→{{header|Zig}}: writer.print() is void (no return value)) |
||
Line 1,495:
pub fn report(self: *Node, allocator: Allocator, writer: anytype, level: []const u8) !void {
if (self.voltage) |voltage| {
self.res(), voltage, self.current(),
self.effect(), level, self.node_type.repr(),
Line 1,547:
pub fn calculate(allocator: Allocator, writer: anytype, voltage: f32, tokens: []PostfixToken) !*Node {
var node = try build(allocator, tokens);
|