authorgravatar for justus@klausecker.deJustus Klausecker <justus@klausecker.de> 2026-01-09 04:49:00+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-01-11 11:37:17+00:00
logd94137d23fff3958e003c7d6d70a5d1087a1e98c
tree5fc0ac9f279a9027c10106084718587f6a0faccd
parent6e35138901d052f19d41ec7bafeaf31f1adf54f6
signaturelock-open Commit is signed but in an unrecognized format.

src/Type: make doc comments prettier :)


1 files changed, 15 insertions(+), 15 deletions(-)

src/Type.zig+15-15
......@@ -1933,12 +1933,12 @@ pub fn isPtrLikeOptional(ty: Type, zcu: *const Zcu) bool {
19331933 };
19341934}
19351935
1936/// For *[N]T, returns [N]T.
1937/// For *T, returns T.
1938/// For [*]T, returns T.
1939/// For @Vector(N, T), returns T.
1940/// For [N]T, returns T.
1941/// For ?T, returns T.
1936/// For `*[N]T`, returns `[N]T`.
1937/// For `*T`, returns `T`.
1938/// For `[*]T`, returns `T`.
1939/// For `@Vector(N, T)`, returns `T`.
1940/// For `[N]T`, returns `T`.
1941/// For `?T`, returns `T`.
19421942pub fn childType(ty: Type, zcu: *const Zcu) Type {
19431943 return childTypeIp(ty, &zcu.intern_pool);
19441944}
......@@ -1947,15 +1947,15 @@ pub fn childTypeIp(ty: Type, ip: *const InternPool) Type {
19471947 return Type.fromInterned(ip.childType(ty.toIntern()));
19481948}
19491949
1950/// For *[N]T, returns T.
1951/// For ?*T, returns T.
1952/// For ?*[N]T, returns T.
1953/// For ?[*]T, returns T.
1954/// For *T, returns T.
1955/// For [*]T, returns T.
1956/// For [N]T, returns T.
1957/// For []T, returns T.
1958/// For anyframe->T, returns T.
1950/// For `*[N]T`, returns `T`.
1951/// For `?*T`, returns `T`.
1952/// For `?*[N]T`, returns `T`.
1953/// For `?[*]T`, returns `T`.
1954/// For `*T`, returns `T`.
1955/// For `[*]T`, returns `T`.
1956/// For `[N]T`, returns `T`.
1957/// For `[]T`, returns `T`.
1958/// For `anyframe->T`, returns `T`.
19591959pub fn elemType2(ty: Type, zcu: *const Zcu) Type {
19601960 return switch (zcu.intern_pool.indexToKey(ty.toIntern())) {
19611961 .ptr_type => |ptr_type| switch (ptr_type.flags.size) {