Skip to content

Commit 2e32349

Browse files
committed
Fix variable names in documentation
1 parent 40b8304 commit 2e32349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/livebooks/custom_transformation.livemd

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ You can combine it all together to use `ExOptimizer` library
8989

9090
```elixir
9191
def process(_version, original_file) do
92-
tmp_path = Waffle.File.generate_temporary_path(file)
92+
tmp_path = Waffle.File.generate_temporary_path(original_file)
9393

9494
File.cp!(original_file.path, tmp_path)
9595

96-
with {:ok, _} <- ExOptimizer.optimize(file.path) do
96+
with {:ok, _} <- ExOptimizer.optimize(tmp_path) do
9797
{
9898
:ok,
99-
%Waffle.File{file | path: tmp_path, is_tempfile?: true}
99+
%Waffle.File{original_file | path: tmp_path, is_tempfile?: true}
100100
}
101101
end
102102
end

0 commit comments

Comments
 (0)