diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
| commit | d917815d8111b98dc237cbe2c723fa63018e02b1 (patch) | |
| tree | ce12771a86b2412ee9692ca73d3ca49abe5da3ce /std/math/log.zig | |
| parent | 8bc523219c66427951e5339550502871547f2138 (diff) | |
| download | zig-d917815d8111b98dc237cbe2c723fa63018e02b1.tar.gz zig-d917815d8111b98dc237cbe2c723fa63018e02b1.zip | |
explicitly return from blocks
instead of last statement being expression value
closes #629
Diffstat (limited to 'std/math/log.zig')
| -rw-r--r-- | std/math/log.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/math/log.zig b/std/math/log.zig index 075cecc890..1ff226f7e5 100644 --- a/std/math/log.zig +++ b/std/math/log.zig @@ -29,7 +29,7 @@ pub fn log(comptime T: type, base: T, x: T) -> T { f32 => return f32(math.ln(f64(x)) / math.ln(f64(base))), f64 => return math.ln(x) / math.ln(f64(base)), else => @compileError("log not implemented for " ++ @typeName(T)), - }; + } }, else => { |
