summaryrefslogtreecommitdiff
path: root/src/str.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/str.zig')
-rw-r--r--src/str.zig2
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)));
}