mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 01:20:30 +00:00
No unused fn params
This commit is contained in:
parent
f9a1956d88
commit
aa733dc3ef
2 changed files with 2 additions and 0 deletions
|
@ -43,5 +43,6 @@ pub fn main() void {
|
|||
|
||||
fn getPageTitle(url: []const u8) []const u8 {
|
||||
// Please PRETEND this is actually making a network request.
|
||||
_ = url;
|
||||
return "Example Title.";
|
||||
}
|
||||
|
|
|
@ -49,5 +49,6 @@ pub fn main() void {
|
|||
|
||||
fn getPageTitle(url: []const u8) []const u8 {
|
||||
// Please PRETEND this is actually making a network request.
|
||||
_ = url;
|
||||
return "Example Title";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue