Skip to content

Commit bf63ea0

Browse files
committed
Use correct struct field in C++
1 parent 9b20036 commit bf63ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_src/pythonx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ auto list = fine::Atom("list");
137137
auto map = fine::Atom("map");
138138
auto map_set = fine::Atom("map_set");
139139
auto output = fine::Atom("output");
140-
auto ref = fine::Atom("ref");
140+
auto resource = fine::Atom("resource");
141141
auto traceback = fine::Atom("traceback");
142142
auto tuple = fine::Atom("tuple");
143143
auto type = fine::Atom("type");
@@ -190,7 +190,7 @@ struct ExObject {
190190
static constexpr auto module = &atoms::ElixirPythonxObject;
191191

192192
static constexpr auto fields() {
193-
return std::make_tuple(std::make_tuple(&ExObject::resource, &atoms::ref));
193+
return std::make_tuple(std::make_tuple(&ExObject::resource, &atoms::resource));
194194
}
195195
};
196196

0 commit comments

Comments
 (0)