Skip to content

Commit 48fc2ad

Browse files
authored
Fix typo and return value in doc (#626)
1 parent 5a29789 commit 48fc2ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ecto/adapter/structure.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ defmodule Ecto.Adapter.Structure do
4949
5050
Returns `{output, exit_status}` where `output` is a string of the stdout
5151
(as long as no option `into` is provided, see `System.cmd/3`) and `exit_status`
52-
is the exit status of the invoation. (`0` for success)
52+
is the exit status of the invocation. (`0` for success)
5353
5454
## Examples
5555
5656
iex> dump_cmd(["--data-only", "--table", "table_name"], [stdout_to_stderr: true], Acme.Repo.config())
57-
"--\n-- PostgreSQL database dump\n--\n" <> _rest
57+
{"--\n-- PostgreSQL database dump\n--\n" <> _rest, 0}
5858
5959
"""
6060
@callback dump_cmd(args :: [String.t()], opts :: Keyword.t(), config :: Keyword.t()) ::

0 commit comments

Comments
 (0)