authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-27 14:27:20-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-27 14:27:20-04:00
log4a57913ca0beafd655568fad03463f5e58140015
treea41f965c37ddc2903890748fb05cb07a6c9d76b1
parent73c4a5f1864c16820c1fb332433dedba144df4aa
signaturelock-open Commit is signed but in an unrecognized format.

std.target: use mem instead of std.mem


1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/target.zig+4-4
...@@ -205,7 +205,7 @@ pub const Target = union(enum) {...@@ -205,7 +205,7 @@ pub const Target = union(enum) {
205 },205 },
206 };206 };
207207
208 pub fn zigTriple(self: Target, allocator: *std.mem.Allocator) ![]u8 {208 pub fn zigTriple(self: Target, allocator: *mem.Allocator) ![]u8 {
209 return std.fmt.allocPrint(209 return std.fmt.allocPrint(
210 allocator,210 allocator,
211 "{}{}-{}-{}",211 "{}{}-{}-{}",
...@@ -216,13 +216,13 @@ pub const Target = union(enum) {...@@ -216,13 +216,13 @@ pub const Target = union(enum) {
216 );216 );
217 }217 }
218218
219 pub fn allocDescription(self: Target, allocator: *std.mem.Allocator) ![]u8 {219 pub fn allocDescription(self: Target, allocator: *mem.Allocator) ![]u8 {
220 // TODO is there anything else worthy of the description that is not220 // TODO is there anything else worthy of the description that is not
221 // already captured in the triple?221 // already captured in the triple?
222 return self.zigTriple(allocator);222 return self.zigTriple(allocator);
223 }223 }
224224
225 pub fn zigTripleNoSubArch(self: Target, allocator: *std.mem.Allocator) ![]u8 {225 pub fn zigTripleNoSubArch(self: Target, allocator: *mem.Allocator) ![]u8 {
226 return std.fmt.allocPrint(226 return std.fmt.allocPrint(
227 allocator,227 allocator,
228 "{}-{}-{}",228 "{}-{}-{}",
...@@ -232,7 +232,7 @@ pub const Target = union(enum) {...@@ -232,7 +232,7 @@ pub const Target = union(enum) {
232 );232 );
233 }233 }
234234
235 pub fn linuxTriple(self: Target, allocator: *std.mem.Allocator) ![]u8 {235 pub fn linuxTriple(self: Target, allocator: *mem.Allocator) ![]u8 {
236 return std.fmt.allocPrint(236 return std.fmt.allocPrint(
237 allocator,237 allocator,
238 "{}-{}-{}",238 "{}-{}-{}",