antonmi / espec

Elixir Behaviour Driven Development
Other
808 stars 62 forks source link

Add parenthesis to avoid ambiguous pipe in doctest #291

Closed MeneDev closed 5 years ago

MeneDev commented 5 years ago

For a doctest that uses an :inspect a warning is issued for elixir 1.8.2-otp-22

warning: parentheses are required when piping into a function call. For example:

    foo 1 |> bar 2 |> baz 3

is ambiguous and should be written as

    foo(1) |> bar(2) |> baz(3)
antonmi commented 5 years ago

Cool! Thank you!