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

Unified Diff: sdk/lib/io/platform.dart

Issue 1145053002: Make Platform.executable return a fully qualified path the the executable (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix comment Created 5 years, 7 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
Index: sdk/lib/io/platform.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index 134cd21ec574ae65572fd55d6bcb1c6c8f673b00..6b86095d06158b3c459cdb68da2421cd4b09c666 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -39,7 +39,7 @@ part of dart.io;
* Map<String, String> envVars = Platform.environment;
* print(envVars['PATH']);
* }
- *
+ *
* ## Determine the OS
*
* You can get the name of the operating system as a string with the
@@ -53,7 +53,7 @@ part of dart.io;
* String os = Platform.operatingSystem;
* // Or, use a predicate getter.
* if (Platform.isMacOS) {
- * Print('is a Mac');
+ * Print('is a Mac');
* } else {
* print('is not a Mac');
* }
@@ -62,7 +62,7 @@ part of dart.io;
* ## Other resources
*
* [Dart by Example](https://www.dartlang.org/dart-by-example/#dart-io-and-command-line-apps)
- * provides additional task-oriented code samples that show how to use
+ * provides additional task-oriented code samples that show how to use
* various API from the [dart:io] library.
*/
class Platform {
@@ -131,6 +131,8 @@ class Platform {
* Returns the path of the executable used to run the script in this
* isolate.
*
+ * If supported by the platform the returned path will be absolute.
+ *
* If the execution environment does not support [executable] an empty
* string is returned.
*/

Powered by Google App Engine
This is Rietveld 408576698