Browse Source

Show modules in docs, fix doc warnings

Johannes Hofmann 7 years ago
parent
commit
d2f295ce4b
2 changed files with 16 additions and 16 deletions
  1. 2
    2
      src/coord.rs
  2. 14
    14
      src/main.rs

+ 2
- 2
src/coord.rs View File

@@ -155,8 +155,8 @@ impl SubTileCoord {
155 155
 }
156 156
 
157 157
 /// A tile position in a tile pyramid.
158
-/// Each zoom level has 2^zoom by 2^zoom tiles.
159
-/// `x` and `y` are allowed to be negative or >= 2^zoom but then they will not correspond to a tile
158
+/// Each zoom level has 2<sup>zoom</sup> by 2<sup>zoom</sup> tiles.
159
+/// `x` and `y` are allowed to be negative or >= 2<sup>zoom</sup> but then they will not correspond to a tile
160 160
 /// and `is_on_planet` will return false.
161 161
 #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
162 162
 pub struct TileCoord {

+ 14
- 14
src/main.rs View File

@@ -11,20 +11,20 @@ extern crate toml;
11 11
 extern crate xdg;
12 12
 
13 13
 #[macro_use]
14
-mod context;
15
-
16
-mod buffer;
17
-mod config;
18
-mod coord;
19
-mod map_view;
20
-mod map_view_gl;
21
-mod program;
22
-mod texture;
23
-mod tile;
24
-mod tile_cache;
25
-mod tile_atlas;
26
-mod tile_loader;
27
-mod tile_source;
14
+pub mod context;
15
+
16
+pub mod buffer;
17
+pub mod config;
18
+pub mod coord;
19
+pub mod map_view;
20
+pub mod map_view_gl;
21
+pub mod program;
22
+pub mod texture;
23
+pub mod tile;
24
+pub mod tile_cache;
25
+pub mod tile_atlas;
26
+pub mod tile_loader;
27
+pub mod tile_source;
28 28
 
29 29
 use clap::Arg;
30 30
 use coord::ScreenCoord;