aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/langref.md b/doc/langref.md
index 1849ef0351..c53d3f8fc2 100644
--- a/doc/langref.md
+++ b/doc/langref.md
@@ -625,3 +625,7 @@ Converts a pointer of one type to a pointer of another type.
### @intToPtr(comptime DestType: type, int: usize) -> DestType
Converts an integer to a pointer. To convert the other way, use `usize(ptr)`.
+
+### @enumTagName(value: var) -> []const u8
+
+Converts an enum tag name to a slice of bytes. Example: