Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
58 stars 5 forks source link

"Copy static assets" code sample has a syntax error #123

Closed exaby73 closed 3 weeks ago

exaby73 commented 1 month ago

image

The code sample doesn't have a parenthesis on the last line before generateWebsite

void main() {
  final staticShock = StaticShock()
    ..pick(DirectoryPicker.parse('images'))
    ..pick(DirectoryPicker.parse('fonts'))
-    ..pick(FilePicker.parse('favicon.ico');
+    ..pick(FilePicker.parse('favicon.ico'));

  staticShock.generateWebsite();
}