Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Madsen authored and Allen Madsen committed Oct 26, 2018
1 parent 316a0ea commit a5aaeb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/conduit/message.ex
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ defmodule Conduit.Message do
Returns all non-`nil` fields from the message as a map.
The following fields will be returned:
#{@fields |> Enum.map(&"* `#{inspect(&1)}`") |> Enum.join("\n ")}
#{@fields |> Enum.map(&"* `#{inspect(&1)}`") |> Enum.join("\n")}
## Examples
Expand Down
2 changes: 1 addition & 1 deletion lib/conduit/plug/unwrap.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Conduit.Plug.Unwrap do
By default this plug expects the body to be a map containing 3 string keys:
* `"headers"` - will be put into the message headers
* `"fields" - will be put into the messages fields (i.e. `:message_id`, `:correlation_id`, etc.)
* `"fields"` - will be put into the messages fields (i.e. `:message_id`, `:correlation_id`, etc.)
* `"body"` - will replace the current wrapper body
If you want a different wrapping structure for the message, you can pass the the
Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ defmodule Conduit.Mixfile do
"Conduit.Plug.MessageId",
"Conduit.Plug.NackException",
"Conduit.Plug.Parse",
"Conduit.Plug.Retry"
"Conduit.Plug.Retry",
"Conduit.Plug.Unwrap",
"Conduit.Plug.Wrap"
],
Adapter: [
"Conduit.Adapter"
Expand Down

0 comments on commit a5aaeb4

Please sign in to comment.