From a2833ecaf438067f0a8d1fe6ff4658cb6c8f747d Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Sun, 31 Jul 2022 18:15:36 +0300 Subject: [PATCH] format --- spec/geohash_spec.cr | 1 - src/geohash.cr | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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?