Skip to content

Commit 0d70bb4

Browse files
committed
Remove some aliases in docs / test
1 parent 5c63bfa commit 0d70bb4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/mudbrick.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ defmodule Mudbrick do
88
99
iex> import Mudbrick.TestHelper # import some example fonts and images
1010
...> import Mudbrick
11-
...> alias Mudbrick.Path
1211
...> new(
1312
...> compress: true, # flate compression for fonts, text etc.
1413
...> fonts: %{bodoni: bodoni_regular()}, # register an OTF font
@@ -21,7 +20,7 @@ defmodule Mudbrick do
2120
...> position: {0, 0} # in points (1/72 inch), starts at bottom left
2221
...> )
2322
...> |> path(fn path -> # draw a line
24-
...> import Path
23+
...> import Mudbrick.Path
2524
...> path
2625
...> |> move(to: {55, 40}) # starting near the middle of the page
2726
...> |> line(

test/mudbrick_test.exs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ defmodule MudbrickTest do
55
import Mudbrick
66
import Mudbrick.TestHelper
77

8-
alias Mudbrick.Path
9-
108
test "can serialise with one empty page" do
119
assert new()
1210
|> page()

0 commit comments

Comments
 (0)