langref: update to new error message

This commit is contained in:
Andrew Kelley 2022-08-10 14:49:42 -07:00
parent a73b3a0d70
commit 09ec9b0315

View File

@ -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;
} }