Skip to content

Commit

Permalink
Fix typos in docs (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Aug 5, 2024
1 parent 87408c8 commit a689b94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ rows: [{42, %Geo.Point{coordinates: {30.0, -90.0}, srid: 4326 }}]}}
Use with [Ecto](https://hexdocs.pm/ecto_sql/Ecto.Adapters.Postgres.html#module-extensions):

```elixir
#If using with Ecto, you may want something like thing instead
# If using with Ecto, you may want something like this instead
Postgrex.Types.define(MyApp.PostgresTypes,
[Geo.PostGIS.Extension] ++ Ecto.Adapters.Postgres.extensions(),
json: Jason)

#Add extensions to your repo config
# Add extensions to your repo config
config :thanks, Repo,
database: "geo_postgrex_test",
username: "postgres",
Expand All @@ -83,7 +83,7 @@ config :thanks, Repo,
types: MyApp.PostgresTypes


#Create a schema
# Create a schema
defmodule Test do
use Ecto.Schema

Expand All @@ -93,7 +93,7 @@ defmodule Test do
end
end

#Geometry or Geography columns can be created in migrations too
# Geometry or Geography columns can also be created in migrations
defmodule Repo.Migrations.Init do
use Ecto.Migration

Expand Down
6 changes: 3 additions & 3 deletions test/geo_postgis_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ defmodule Geo.PostGIS.Test do
assert(result.rows == [[42, geo]])
end

test "insert mulitpoint", context do
test "insert multipoint", context do
pid = context[:pid]
geo = %Geo.MultiPoint{coordinates: [{0, 0}, {20, 20}, {60, 60}], srid: 4326}

Expand All @@ -147,7 +147,7 @@ defmodule Geo.PostGIS.Test do
assert(result.rows == [[42, geo]])
end

test "insert mulitlinestring", context do
test "insert multilinestring", context do
pid = context[:pid]

geo = %Geo.MultiLineString{
Expand All @@ -167,7 +167,7 @@ defmodule Geo.PostGIS.Test do
assert(result.rows == [[42, geo]])
end

test "insert mulitpolygon", context do
test "insert multipolygon", context do
pid = context[:pid]

geo = %Geo.MultiPolygon{
Expand Down

0 comments on commit a689b94

Please sign in to comment.