瀏覽代碼

Rename Way::refs_slice -> Way::raw_refs

to avoid confusion. The returned slice needs delta decoding to retrieve
the node ids.
Johannes Hofmann 7 年之前
父節點
當前提交
9871987b4f
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      src/elements.rs

+ 3
- 3
src/elements.rs 查看文件

@@ -120,7 +120,7 @@ impl<'a> Node<'a> {
120 120
 /// An OpenStreetMap way element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Way)).
121 121
 ///
122 122
 /// A way contains an ordered list of node references that can be accessed with the `refs` or the
123
-/// `refs_slice` method.
123
+/// `raw_refs` method.
124 124
 #[derive(Clone, Debug)]
125 125
 pub struct Way<'a> {
126 126
     block: &'a PrimitiveBlock,
@@ -184,8 +184,8 @@ impl<'a> Way<'a> {
184 184
         }
185 185
     }
186 186
 
187
-    /// Returns a slice of references. Each reference should correspond to a node id.
188
-    pub fn refs_slice(&self) -> &[i64] {
187
+    /// Returns a slice of delta coded node ids.
188
+    pub fn raw_refs(&self) -> &[i64] {
189 189
         self.osmway.get_refs()
190 190
     }
191 191