Skip to content

Commit

Permalink
Fix potentially confusing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
benashford committed Aug 29, 2015
1 parent 737b290 commit 9aa7c35
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,7 +110,7 @@ Filter::build_geo_bounding_box("pin")
.build();
</pre>

This is because the tuple `((f64, f64), (f64, f64))` implements `Into<GeoBox>`. Similar provisions are made for `(f64, f64, f64, f64)` for the `Vertices` version, and for `(String, String)` for the geohash version. This is achieved by simply implementing the `From<whatever> for Location` trait for each required combination:
This is because the tuple `((f64, f64), (f64, f64))` implements `Into<GeoBox>`. Similar provisions are made for `(f64, f64, f64, f64)` for the `Vertices` version, and for `(String, String)` for the geohash version. This is achieved by simply implementing the `From<whatever> for Geobox` trait for each required combination:

<pre>
impl From<(f64, f64, f64, f64)> for GeoBox {
Expand Down

0 comments on commit 9aa7c35

Please sign in to comment.