mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
langref: update to new error message
This commit is contained in:
parent
a73b3a0d70
commit
09ec9b0315
1 changed files with 1 additions and 1 deletions
|
|
@ -6622,7 +6622,7 @@ fn gimmeTheBiggerInteger(a: u64, b: u64) u64 {
|
|||
<p>
|
||||
For example, if we were to introduce another function to the above snippet:
|
||||
</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 {
|
||||
return if (a > b) a else b;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue