mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-06 18:13:29 +02:00
No unused fn params
This commit is contained in:
@@ -43,5 +43,6 @@ pub fn main() void {
|
|||||||
|
|
||||||
fn getPageTitle(url: []const u8) []const u8 {
|
fn getPageTitle(url: []const u8) []const u8 {
|
||||||
// Please PRETEND this is actually making a network request.
|
// Please PRETEND this is actually making a network request.
|
||||||
|
_ = url;
|
||||||
return "Example Title.";
|
return "Example Title.";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,5 +49,6 @@ pub fn main() void {
|
|||||||
|
|
||||||
fn getPageTitle(url: []const u8) []const u8 {
|
fn getPageTitle(url: []const u8) []const u8 {
|
||||||
// Please PRETEND this is actually making a network request.
|
// Please PRETEND this is actually making a network request.
|
||||||
|
_ = url;
|
||||||
return "Example Title";
|
return "Example Title";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user