Skip to content

Commit 917240c

Browse files
committed
---
yaml --- r: 12751 b: refs/heads/master c: 1db88e7 h: refs/heads/master i: 12749: ca69084 12747: c0a24c0 12743: ef2fab9 12735: e7a2b7f v: v3
1 parent adbeacc commit 917240c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8a9df5aa38f63c9864dc560baadec95575188997
2+
refs/heads/master: 1db88e793756f691dd5b186b470117104a659883
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/path.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,17 @@ fn splitext(p: path) -> (str, str) {
200200
}
201201

202202
#[doc = "
203-
Removes extra '.' and '..' entries from paths
203+
Collapses redundant path separators.
204204
205205
Does not follow symbolic links.
206+
207+
# Examples
208+
209+
* '/a/../b' becomes '/b'
210+
* 'a/./b/' becomes 'a/b/'
211+
* 'a/b/../../../' becomes '..'
212+
* '/a/b/c/../d/./../../e/' becomes '/a/e/'
213+
206214
"]
207215
fn normalize(p: path) -> path {
208216
let s = split(p);

0 commit comments

Comments
 (0)