Chromium Code Reviews| Index: pkg/path/lib/path.dart |
| diff --git a/pkg/path/lib/path.dart b/pkg/path/lib/path.dart |
| index 7ff858ce44e90c97420c82af19482e95195f6789..304023db684ed3e823789055313ac61f6d9ebccb 100644 |
| --- a/pkg/path/lib/path.dart |
| +++ b/pkg/path/lib/path.dart |
| @@ -322,23 +322,23 @@ bool isWithin(String parent, String child) => _context.isWithin(parent, child); |
| /// withoutExtension('path/to/foo.dart'); // -> 'path/to/foo' |
| String withoutExtension(String path) => _context.withoutExtension(path); |
| -/// Returns the path represented by [uri]. |
| +/// Returns the path represented by [uri], which may be a [String] or a [Uri]. |
| /// |
| /// For POSIX and Windows styles, [uri] must be a `file:` URI. For the URL |
| /// style, this will just convert [uri] to a string. |
| /// |
| /// // POSIX |
| -/// path.fromUri(Uri.parse('file:///path/to/foo')) |
| +/// context.fromUri('file:///path/to/foo') |
| /// // -> '/path/to/foo' |
| /// |
| /// // Windows |
| -/// path.fromUri(Uri.parse('file:///C:/path/to/foo')) |
| +/// context.fromUri('file:///C:/path/to/foo') |
| /// // -> r'C:\path\to\foo' |
| /// |
| /// // URL |
| -/// path.fromUri(Uri.parse('http://dartlang.org/path/to/foo')) |
| +/// context.fromUri('http://dartlang.org/path/to/foo') |
| /// // -> 'http://dartlang.org/path/to/foo' |
|
Bob Nystrom
2014/03/18 20:31:09
We should document and add an example that a relat
nweiz
2014/03/18 22:02:19
Done.
|
| -String fromUri(Uri uri) => _context.fromUri(uri); |
| +String fromUri(uri) => _context.fromUri(uri); |
| /// Returns the URI that represents [path]. |
| /// |