mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
langref: update to new error message
This commit is contained in:
parent
a73b3a0d70
commit
09ec9b0315
@ -6622,7 +6622,7 @@ fn gimmeTheBiggerInteger(a: u64, b: u64) u64 {
|
|||||||
<p>
|
<p>
|
||||||
For example, if we were to introduce another function to the above snippet:
|
For example, if we were to introduce another function to the above snippet:
|
||||||
</p>
|
</p>
|
||||||
{#code_begin|test_err|value with comptime only type 'type' depends on runtime control flow#}
|
{#code_begin|test_err|unable to resolve comptime value#}
|
||||||
fn max(comptime T: type, a: T, b: T) T {
|
fn max(comptime T: type, a: T, b: T) T {
|
||||||
return if (a > b) a else b;
|
return if (a > b) a else b;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user