Skip to content

Commit

Permalink
Fix typo and return value in doc (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Jul 25, 2024
1 parent 5a29789 commit 48fc2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ecto/adapter/structure.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ defmodule Ecto.Adapter.Structure do
Returns `{output, exit_status}` where `output` is a string of the stdout
(as long as no option `into` is provided, see `System.cmd/3`) and `exit_status`
is the exit status of the invoation. (`0` for success)
is the exit status of the invocation. (`0` for success)
## Examples
iex> dump_cmd(["--data-only", "--table", "table_name"], [stdout_to_stderr: true], Acme.Repo.config())
"--\n-- PostgreSQL database dump\n--\n" <> _rest
{"--\n-- PostgreSQL database dump\n--\n" <> _rest, 0}
"""
@callback dump_cmd(args :: [String.t()], opts :: Keyword.t(), config :: Keyword.t()) ::
Expand Down

0 comments on commit 48fc2ad

Please sign in to comment.