1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

Normalize interrobangs

This commit is contained in:
Dave Gauer 2021-05-09 13:15:53 -04:00
parent de584dcd71
commit 2ad8de5415
3 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const std = @import("std");
pub fn main() void {
var n: u32 = 1;
// Oh dear! This while loop will go forever!?
// Oh dear! This while loop will go forever?!
// Please fix this so the print statement below gives the desired output.
while (true) : (n += 1) {
if (???) ???;

View File

@ -18,7 +18,7 @@ pub fn main() void {
fn printAnimal(animal: u8) void {
std.debug.print("(", .{});
std.debug.print(") ", .{}); // <---- how!?
std.debug.print(") ", .{}); // <---- how?!
if (animal == 'g') {
std.debug.print("Goat", .{});

View File

@ -1,4 +1,4 @@
21c21
< std.debug.print(") ", .{}); // <---- how!?
< std.debug.print(") ", .{}); // <---- how?!
---
> defer std.debug.print(") ", .{}); // <---- how!?
> defer std.debug.print(") ", .{}); // <---- how?!