Skip to content

Commit

Permalink
Value: fix doc comment for floatCast
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Feb 26, 2024
1 parent 42bdd90 commit 4319e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aro/Value.zig
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub fn intCast(v: *Value, dest_ty: Type, comp: *Compilation) !void {
v.* = try intern(comp, .{ .int = .{ .big_int = result_bigint.toConst() } });
}

/// Converts the stored value from an integer to a float.
/// Converts the stored value to a float of the specified type
/// `.none` value remains unchanged.
pub fn floatCast(v: *Value, dest_ty: Type, comp: *Compilation) !void {
if (v.opt_ref == .none) return;
Expand Down

0 comments on commit 4319e95

Please sign in to comment.