diff --git a/spec/geohash_spec.cr b/spec/geohash_spec.cr index c77a728..1fbade8 100644 --- a/spec/geohash_spec.cr +++ b/spec/geohash_spec.cr @@ -7,7 +7,6 @@ describe Geohash do Geohash.encode(40.7178486, -74.0002041).should eq("dr5rsh6wwm0") end - it "#decode" do Geohash.decode("gbsuv").should eq({lat: 48.669, lng: -4.329}) end diff --git a/src/geohash.cr b/src/geohash.cr index 2c2c1d0..8855b88 100644 --- a/src/geohash.cr +++ b/src/geohash.cr @@ -13,7 +13,7 @@ module Geohash # # ``` # Geohash.encode(52.205, 0.119, 7) # => "u120fxw" - # Geohash.encode(48.669, -4.329) # => "gbsuv" + # Geohash.encode(48.669, -4.329) # => "gbsuv" # ``` def encode(latitude : Float64, longitude : Float64, precision : Int32? = nil) if precision.nil?