rename "Conservative estimate" to "Projected return"
This commit is contained in:
parent
12cc8fb9e7
commit
ac62b5bd1e
2 changed files with 6 additions and 6 deletions
|
|
@ -198,11 +198,11 @@ pub fn run(
|
||||||
try writeReturnRow(out, color, port_row);
|
try writeReturnRow(out, color, port_row);
|
||||||
try cli.reset(out, color);
|
try cli.reset(out, color);
|
||||||
|
|
||||||
// Conservative estimate
|
// Projected return (conservative estimate from benchmark analytics)
|
||||||
{
|
{
|
||||||
var buf: [16]u8 = undefined;
|
var buf: [16]u8 = undefined;
|
||||||
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
||||||
try cli.printFg(out, color, cli.CLR_MUTED, "{s: <32}{s: >8}\n", .{ "Conservative estimate", cell.text });
|
try cli.printFg(out, color, cli.CLR_MUTED, "{s: <32}{s: >8}\n", .{ "Projected return", cell.text });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Target allocation note
|
// Target allocation note
|
||||||
|
|
|
||||||
|
|
@ -508,12 +508,12 @@ fn buildHeaderSection(app: *App, arena: std.mem.Allocator, lines: *std.ArrayList
|
||||||
const port_row = view.buildReturnRow("Your Portfolio", comparison.portfolio_returns, &port_bufs, true);
|
const port_row = view.buildReturnRow("Your Portfolio", comparison.portfolio_returns, &port_bufs, true);
|
||||||
try appendReturnRow(lines, arena, th, port_row);
|
try appendReturnRow(lines, arena, th, port_row);
|
||||||
|
|
||||||
// Conservative estimate
|
// Projected return (conservative estimate from benchmark analytics)
|
||||||
{
|
{
|
||||||
var buf: [16]u8 = undefined;
|
var buf: [16]u8 = undefined;
|
||||||
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
||||||
try lines.append(arena, .{
|
try lines.append(arena, .{
|
||||||
.text = try std.fmt.allocPrint(arena, " {s: <30}{s: >8}", .{ "Conservative estimate", cell.text }),
|
.text = try std.fmt.allocPrint(arena, " {s: <30}{s: >8}", .{ "Projected return", cell.text }),
|
||||||
.style = th.mutedStyle(),
|
.style = th.mutedStyle(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -696,12 +696,12 @@ pub fn buildStyledLines(app: *App, arena: std.mem.Allocator) ![]const StyledLine
|
||||||
const port_row = view.buildReturnRow("Your Portfolio", comparison.portfolio_returns, &port_bufs, true);
|
const port_row = view.buildReturnRow("Your Portfolio", comparison.portfolio_returns, &port_bufs, true);
|
||||||
try appendReturnRow(&lines, arena, th, port_row);
|
try appendReturnRow(&lines, arena, th, port_row);
|
||||||
|
|
||||||
// Conservative estimate
|
// Projected return (conservative estimate from benchmark analytics)
|
||||||
{
|
{
|
||||||
var buf: [16]u8 = undefined;
|
var buf: [16]u8 = undefined;
|
||||||
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
const cell = view.fmtReturnCell(&buf, comparison.conservative_return);
|
||||||
try lines.append(arena, .{
|
try lines.append(arena, .{
|
||||||
.text = try std.fmt.allocPrint(arena, " {s: <30}{s: >8}", .{ "Conservative estimate", cell.text }),
|
.text = try std.fmt.allocPrint(arena, " {s: <30}{s: >8}", .{ "Projected return", cell.text }),
|
||||||
.style = th.mutedStyle(),
|
.style = th.mutedStyle(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue