aboutsummaryrefslogtreecommitdiff
path: root/exercises/065_builtins2.zig
diff options
context:
space:
mode:
authorJonathan Halmen <jonathan@halmen.org>2021-11-05 16:44:29 +0100
committerJonathan Halmen <jonathan@halmen.org>2021-11-05 17:46:56 +0100
commit88886a37d9721763326ff80a7b2c127e4a8cb8ae (patch)
tree3e6ea609c66930457907903329cdd947edafbb78 /exercises/065_builtins2.zig
parent4147a9a39b362468cc6f16c8ce751ee3481321f4 (diff)
downloadziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.gz
ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.bz2
ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.xz
ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.zip
fix whitespace line-endings
Diffstat (limited to 'exercises/065_builtins2.zig')
-rw-r--r--exercises/065_builtins2.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig
index ef41797..c9257ff 100644
--- a/exercises/065_builtins2.zig
+++ b/exercises/065_builtins2.zig
@@ -1,7 +1,7 @@
//
// Zig has builtins for mathematical operations such as...
//
-// @sqrt @sin @cos
+// @sqrt @sin @cos
// @exp @log @floor
//
// ...and lots of type casting operations such as...
@@ -20,18 +20,18 @@
// by exploring just THREE of Zig's MANY introspection abilities:
//
// 1. @This() type
-//
+//
// Returns the innermost struct, enum, or union that a function
// call is inside.
//
// 2. @typeInfo(comptime T: type) @import("std").builtin.TypeInfo
-//
+//
// Returns information about any type in a TypeInfo union which
// will contain different information depending on which type
// you're examining.
-//
+//
// 3. @TypeOf(...) type
-//
+//
// Returns the type common to all input parameters (each of which
// may be any expression). The type is resolved using the same
// "peer type resolution" process the compiler itself uses when
@@ -46,7 +46,7 @@ const Narcissus = struct {
me: *Narcissus = undefined,
myself: *Narcissus = undefined,
echo: void = undefined,
-
+
fn fetchTheMostBeautifulType() type {
return @This();
}