mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
Normalize interrobangs
This commit is contained in:
parent
34ac5f6742
commit
ac9a4dadfb
3 changed files with 4 additions and 4 deletions
|
@ -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 (???) ???;
|
||||
|
|
|
@ -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", .{});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
21c21
|
||||
< std.debug.print(") ", .{}); // <---- how!?
|
||||
< std.debug.print(") ", .{}); // <---- how?!
|
||||
---
|
||||
> defer std.debug.print(") ", .{}); // <---- how!?
|
||||
> defer std.debug.print(") ", .{}); // <---- how?!
|
||||
|
|
Loading…
Reference in a new issue