diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-09-02 08:17:42 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-09-02 08:17:42 +0200 |
| commit | 6c2e06ed20cdea1a67629554d8aa1d5fcda030f9 (patch) | |
| tree | e5fa1f199a35e455917f661a62b38505afa703d7 /src/str.zig | |
| parent | 804204db7cf1e8a28defd359d17fa72949e13eff (diff) | |
Implement sequences and tuples
Diffstat (limited to 'src/str.zig')
| -rw-r--r-- | src/str.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/str.zig b/src/str.zig index 7dde4f9..c66bd7e 100644 --- a/src/str.zig +++ b/src/str.zig @@ -7,7 +7,7 @@ pub const Str = extern struct { data: c.PyObject, - pub fn fromString(buffer: []const u8) *Self { + pub fn from(buffer: []const u8) *Self { return @ptrCast(c.PyUnicode_FromStringAndSize(@ptrCast(buffer), @intCast(buffer.len))); } |