[ffigen] Update library.dart dartfmt comment (#234)
diff --git a/pkgs/ffigen/lib/src/code_generator/library.dart b/pkgs/ffigen/lib/src/code_generator/library.dart index 0a6978a..080f099 100644 --- a/pkgs/ffigen/lib/src/code_generator/library.dart +++ b/pkgs/ffigen/lib/src/code_generator/library.dart
@@ -106,17 +106,17 @@ /// Generates [file] by generating C bindings. /// - /// If format is true(default), 'dartfmt -w $PATH' will be called to format the generated file. + /// If format is true(default), the formatter will be called to format the generated file. void generateFile(File file, {bool format = true}) { if (!file.existsSync()) file.createSync(recursive: true); file.writeAsStringSync(generate()); if (format) { - _dartFmt(file.path); + _dartFormat(file.path); } } - /// Formats a file using `dartfmt`. - void _dartFmt(String path) { + /// Formats a file using the Dart formatter. + void _dartFormat(String path) { final sdkPath = getSdkPath(); final result = Process.runSync( p.join(sdkPath, 'bin', 'dart'), ['format', path],