mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
commit
ad8b0383a4
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ pub fn main() void {
|
||||||
// Perhaps you remember the "narcissistic fix" for the type name
|
// Perhaps you remember the "narcissistic fix" for the type name
|
||||||
// in Ex. 065? We're going to do the same thing here: use a hard-
|
// in Ex. 065? We're going to do the same thing here: use a hard-
|
||||||
// coded slice to return the type name. That's just so our output
|
// coded slice to return the type name. That's just so our output
|
||||||
// look prettier. Indulge your vanity. Programmers are beautiful.
|
// looks prettier. Indulge your vanity. Programmers are beautiful.
|
||||||
fn stripFname(mytype: []const u8) []const u8 {
|
fn stripFname(mytype: []const u8) []const u8 {
|
||||||
return mytype[22..];
|
return mytype[22..];
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
// information can be obtained. For example, 'puts' returns the number
|
// information can be obtained. For example, 'puts' returns the number
|
||||||
// of characters output.
|
// of characters output.
|
||||||
//
|
//
|
||||||
// So that all this does not remain a dry theroy now, let's just start
|
// So that all this does not remain a dry theory now, let's just start
|
||||||
// and call a C function out of Zig.
|
// and call a C function out of Zig.
|
||||||
|
|
||||||
// our well-known "import" for Zig
|
// our well-known "import" for Zig
|
||||||
|
|
Loading…
Reference in a new issue