aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-24 17:38:57 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-24 17:38:57 +0100
commit7a422b1f2e9cce8856334f9c8b66f04d7c713ff1 (patch)
tree4fcb8108c3a60b8c21cdf1ec786b894e37c79f5f
parent6d3d2869bb2105c3a9ffb54ed816d8f53c56c1ed (diff)
downloadsmtp-zig-7a422b1f2e9cce8856334f9c8b66f04d7c713ff1.tar.gz
smtp-zig-7a422b1f2e9cce8856334f9c8b66f04d7c713ff1.tar.bz2
smtp-zig-7a422b1f2e9cce8856334f9c8b66f04d7c713ff1.tar.xz
smtp-zig-7a422b1f2e9cce8856334f9c8b66f04d7c713ff1.zip
Fix readme code example
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2b0ab93..c61fd3d 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,10 @@ TODO:
- [ ] Zig package management
Code example:
-```
+```zig
const std = @import("std");
-const client = @import("smtp");
+const smtp = @import("smtp");
+const Client = smtp.Client;
pub fn main() !void {
const mail =