Skip to content

Commit 0d118c8

Browse files
authored
Merge pull request #40 from Console-buche/fix/readme-typo
`Readme.md` small typos
2 parents 5a06122 + 5186289 commit 0d118c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ Also it may be useful for some people who need it (including myself), with futur
99
# Basic Usage
1010

1111
```zig
12+
const std = @import("std");
1213
const String = @import("./zig-string.zig").String;
1314
// ...
1415
1516
// Use your favorite allocator
16-
var arena = ArenaAllocator.init(std.heap.page_allocator);
17+
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
1718
defer arena.deinit();
1819
1920
// Create your String
@@ -26,7 +27,7 @@ _ = myString.pop();
2627
try myString.concat(", World 🔥");
2728
2829
// Success!
29-
assert(myString.cmp("🔥 Hello, World 🔥"));
30+
std.debug.assert(myString.cmp("🔥 Hello, World 🔥"));
3031
3132
```
3233

@@ -44,7 +45,7 @@ Add this to your build.zig.zon
4445
4546
```
4647

47-
And add this to you build.zig.zon
48+
And add this to you build.zig
4849

4950
```zig
5051
const string = b.dependency("string", .{

0 commit comments

Comments
 (0)