@@ -10,7 +10,7 @@ import '../cli_util.dart';
1010
1111/// The standard system paths for a Dart tool.
1212///
13- /// These paths respects the following directory standards:
13+ /// These paths respect the following directory standards:
1414///
1515/// - On Linux, the [XDG Base Directory
1616/// Specification](https://specifications.freedesktop.org/basedir-spec/latest/).
@@ -150,7 +150,7 @@ final class BaseDirectories {
150150 /// - on **Mac OS**:
151151 /// - `$HOME/Library/Caches/TemporaryItems/<tool>`
152152 /// - on **Linux**:
153- /// - `$XDG_RUNTIME_HOME /<tool>` if `$XDG_RUNTIME_HOME ` is defined, and
153+ /// - `$XDG_RUNTIME_DIR /<tool>` if `$XDG_RUNTIME_DIR ` is defined, and
154154 /// - `null` otherwise.
155155 ///
156156 /// The directory won't be created, the method merely returns the recommended
@@ -166,12 +166,12 @@ final class BaseDirectories {
166166
167167 /// Path of the directory where the tool will place its state.
168168 ///
169- /// The state directory is likely not backed up or synchronized accross
169+ /// The state directory is likely not backed up or synchronized across
170170 /// devices by the OS. For data that may be backed up and synchronized, use
171171 /// [dataHome] instead.
172172 ///
173173 /// This is a location appropriate for storing data which is either not
174- /// important enougn , not small enough, or not portable enough to store in
174+ /// important enough , not small enough, or not portable enough to store in
175175 /// [dataHome] . For example: logs and indices.
176176 ///
177177 /// The directory location depends on the current [Platform.operatingSystem] :
@@ -247,7 +247,7 @@ final class BaseDirectories {
247247
248248 switch (dir) {
249249 case _XdgBaseDirectoryKind .runtime:
250- // Applications should chose a different directory and print a warning.
250+ // Applications should choose a different directory and print a warning.
251251 return null ;
252252 case _XdgBaseDirectoryKind .cache:
253253 return path.join (_home, '.cache' );
0 commit comments