Restructure into different files
This commit is contained in:
10
test-str.zig
Normal file
10
test-str.zig
Normal file
@@ -0,0 +1,10 @@
|
||||
pub fn main() void {
|
||||
_ = ohyes("sdf"); // everything is fine
|
||||
}
|
||||
|
||||
fn ohyes(str: []const u8) []const u8 {
|
||||
//const foo = "ohyes";
|
||||
_ = str;
|
||||
return "sdfg"; // foo is already a pointer, or rather
|
||||
// foo was a pointer all along
|
||||
}
|
||||
Reference in New Issue
Block a user