Skip to content

Commit

Permalink
feat: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Dec 9, 2024
1 parent 76d2826 commit 8cf2e1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion book/src/libs/env/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main(){
print("On web, doing nothing.");
}
else if(Env.isLinux || Env.isMacOs) {
Env.setCurrentDirectory = "/";
Env.currentDirectory = "/";
print("Moved current directory to root");
}
...
Expand Down
4 changes: 2 additions & 2 deletions lib/src/cell/once_cell/once_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class OnceCell<T extends Object> implements OnceCellNullable<T> {
@override
String toString() {
return (_val == null
? "Uninitialized $runtimeType"
: "Initialized $runtimeType($_val)");
? "$runtimeType"
: "$runtimeType($_val)");
}
}
4 changes: 2 additions & 2 deletions lib/src/cell/once_cell/once_cell_nullable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class OnceCellNullable<T> {
@override
String toString() {
return (_isSet
? "Initialized $runtimeType($_val)"
: "Uninitialized $runtimeType");
? "$runtimeType($_val)"
: "$runtimeType");
}
}
2 changes: 1 addition & 1 deletion lib/src/env/vm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:rust/rust.dart';
class Env {
static Path get currentDirectory => Path(Directory.current.path);

static set setCurrentDirectory(Path path) =>
static set currentDirectory(Path path) =>
Directory.current = path.asString();

/// joins a collection of Paths appropriately for the PATH environment variable.
Expand Down

0 comments on commit 8cf2e1c

Please sign in to comment.