Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: pkg/path/lib/path.dart

Issue 12047035: Add a README for path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revised. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/path/README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/lib/path.dart
diff --git a/pkg/path/lib/path.dart b/pkg/path/lib/path.dart
index cf59a6513927936ae164346519840e3cb03f6203..854d4da3f5d48f2c9757730de4657282facc889a 100644
--- a/pkg/path/lib/path.dart
+++ b/pkg/path/lib/path.dart
@@ -31,7 +31,7 @@ String absolute(String path) => join(current, path);
///
/// Trailing separators are ignored.
///
-/// builder.dirname('path/to/'); // -> 'to'
+/// builder.basename('path/to/'); // -> 'to'
String basename(String path) => _builder.basename(path);
/// Gets the part of [path] after the last separator, and without any trailing
@@ -41,7 +41,7 @@ String basename(String path) => _builder.basename(path);
///
/// Trailing separators are ignored.
///
-/// builder.dirname('path/to/foo.dart/'); // -> 'foo'
+/// builder.basenameWithoutExtension('path/to/foo.dart/'); // -> 'foo'
String basenameWithoutExtension(String path) =>
_builder.basenameWithoutExtension(path);
« no previous file with comments | « pkg/path/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698