fix(lint): correct typos
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m1s
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m1s
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
[files]
|
[files]
|
||||||
extend-exclude = []
|
extend-exclude = []
|
||||||
|
|
||||||
|
[default.extend-words]
|
||||||
|
WRONLY = "WRONLY"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Add or update this library as a dependency in your zig project run the following
|
|||||||
zig fetch --save git+https://gitea.yves-biener.de/yves-biener/zlog
|
zig fetch --save git+https://gitea.yves-biener.de/yves-biener/zlog
|
||||||
```
|
```
|
||||||
|
|
||||||
Afterwards add the library as a dependendy to any module in your *build.zig*:
|
Afterwards add the library as a dependency to any module in your *build.zig*:
|
||||||
|
|
||||||
```zig
|
```zig
|
||||||
const ztime_dependency = b.dependency("ztime", .{
|
const ztime_dependency = b.dependency("ztime", .{
|
||||||
@@ -78,7 +78,7 @@ const Struct = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub fn main() void {
|
pub fn main() void {
|
||||||
// without explict scope (i.e. `.default` scope)
|
// without explicit scope (i.e. `.default` scope)
|
||||||
std.log.info("Without explicit scope or `.default` scope", .{});
|
std.log.info("Without explicit scope or `.default` scope", .{});
|
||||||
// initialize zlog with the scope of `main`
|
// initialize zlog with the scope of `main`
|
||||||
const log = std.log.scoped(.main);
|
const log = std.log.scoped(.main);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const Struct = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub fn main() void {
|
pub fn main() void {
|
||||||
// without explict scope (i.e. `.default` scope)
|
// without explicit scope (i.e. `.default` scope)
|
||||||
std.log.info("Without explicit scope or `.default` scope", .{});
|
std.log.info("Without explicit scope or `.default` scope", .{});
|
||||||
// initialize zlog with the scope of `main`
|
// initialize zlog with the scope of `main`
|
||||||
const log = std.log.scoped(.main);
|
const log = std.log.scoped(.main);
|
||||||
|
|||||||
Reference in New Issue
Block a user