Skip to content

Commit

Permalink
Fix variable names in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
achempion committed Mar 14, 2023
1 parent 40b8304 commit 2e32349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/livebooks/custom_transformation.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ You can combine it all together to use `ExOptimizer` library

```elixir
def process(_version, original_file) do
tmp_path = Waffle.File.generate_temporary_path(file)
tmp_path = Waffle.File.generate_temporary_path(original_file)

File.cp!(original_file.path, tmp_path)

with {:ok, _} <- ExOptimizer.optimize(file.path) do
with {:ok, _} <- ExOptimizer.optimize(tmp_path) do
{
:ok,
%Waffle.File{file | path: tmp_path, is_tempfile?: true}
%Waffle.File{original_file | path: tmp_path, is_tempfile?: true}
}
end
end
Expand Down

0 comments on commit 2e32349

Please sign in to comment.