From c2710283b506f203f41169a86749879c5d87b747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Saint-Jacques?= Date: Fri, 21 Oct 2016 22:43:08 -0400 Subject: [PATCH] capitalize builtins in doc --- doc/langref.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/langref.md b/doc/langref.md index 7cb02eef6d..ff739572e2 100644 --- a/doc/langref.md +++ b/doc/langref.md @@ -370,18 +370,18 @@ TODO Built-in functions are prefixed with `@`. Remember that the `inline` keyword on a parameter means that the parameter must be known at compile time. -### @typeof(expression) -> type +### @typeOf(expression) -> type This function returns a compile-time constant, which is the type of the expression passed as an argument. The expression is *not evaluated*. -### @sizeof(inline T: type) -> (number literal) +### @sizeOf(inline T: type) -> (number literal) This function returns the number of bytes it takes to store T in memory. The result is a target-specific compile time constant. -### @alignof(inline T: type) -> (number literal) +### @alignOf(inline T: type) -> (number literal) This function returns the number of bytes that this type should be aligned to for the current target.