summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorCORDEA <contact@cordea.jp>2016-03-02 20:55:02 +0900
committerCORDEA <contact@cordea.jp>2016-03-02 20:55:02 +0900
commitf77bc7d93a48d21b98d195b718aad35945a3ffaa (patch)
tree366cacabd79c5dcf716e2ecbd800b3440c86ee87 /lib/pure
parent180a4b7657260af5411a4bea58240d3cac2ea0fe (diff)
downloadNim-f77bc7d93a48d21b98d195b718aad35945a3ffaa.tar.gz
Fixed an wrong example of the doc
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/uri.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index abb1a462d..f0a3796a5 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -255,13 +255,13 @@ proc `/`*(x: Uri, path: string): Uri =
   ## Examples:
   ##
   ## .. code-block::
-  ##   let foo = parseUri("http://example.com/foo/bar") / parseUri("/baz")
+  ##   let foo = parseUri("http://example.com/foo/bar") / "/baz"
   ##   assert foo.path == "/foo/bar/baz"
   ##
-  ##   let bar = parseUri("http://example.com/foo/bar") / parseUri("baz")
+  ##   let bar = parseUri("http://example.com/foo/bar") / "baz"
   ##   assert bar.path == "/foo/bar/baz"
   ##
-  ##   let bar = parseUri("http://example.com/foo/bar/") / parseUri("baz")
+  ##   let bar = parseUri("http://example.com/foo/bar/") / "baz"
   ##   assert bar.path == "/foo/bar/baz"
   result = x
   if result.path[result.path.len-1] == '/':
'#n150'>150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219