mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Typo fixes (#2457)
* fix typos in comments and strings * fix typos in symbols (and some comments/strings) * fix typos in releasenotes.md --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
@@ -252,8 +252,8 @@ macro @ceil($input) @const => $$ceil($input);
|
||||
@return "lower if x < lower, upper if x > upper, otherwise return x."
|
||||
|
||||
@require types::is_numerical($typeof(x)) : `The input must be a numerical value or numerical vector`
|
||||
@require $defined(x = lower) : `The lower bound must be convertable to the value type.`
|
||||
@require $defined(x = upper) : `The upper bound must be convertable to the value type.`
|
||||
@require $defined(x = lower) : `The lower bound must be convertible to the value type.`
|
||||
@require $defined(x = upper) : `The upper bound must be convertible to the value type.`
|
||||
*>
|
||||
macro clamp(x, lower, upper) => $$max(($typeof(x))lower, $$min(x, ($typeof(x))upper));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user