From f03f214343477df1d80acc00f33f3b21e2526314 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 21 Apr 2025 16:05:51 -0700 Subject: [PATCH] Fix doc comment reported by pub.dev See https://pub.dev/packages/async/score/log.txt https://pub.dev/packages/args/score/log.txt https://pub.dev/packages/fixnum/score/log.txt --- pkgs/args/README.md | 1 + pkgs/async/lib/src/stream_group.dart | 6 +++--- pkgs/fixnum/lib/src/int32.dart | 2 +- pkgs/fixnum/lib/src/int64.dart | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/args/README.md b/pkgs/args/README.md index 05f36eb7f..b8f5ee2e4 100644 --- a/pkgs/args/README.md +++ b/pkgs/args/README.md @@ -446,6 +446,7 @@ The resulting string looks something like this: [ArgParser]: https://pub.dev/documentation/args/latest/args/ArgParser/ArgParser.html [ArgParserException]: https://pub.dev/documentation/args/latest/args/ArgParserException-class.html [ArgResults]: https://pub.dev/documentation/args/latest/args/ArgResults-class.html +[ArgumentError]: https://api.dart.dev/dart-core/ArgumentError-class.html [CommandRunner]: https://pub.dev/documentation/args/latest/command_runner/CommandRunner-class.html [Command]: https://pub.dev/documentation/args/latest/command_runner/Command-class.html [UsageException]: https://pub.dev/documentation/args/latest/command_runner/UsageException-class.html diff --git a/pkgs/async/lib/src/stream_group.dart b/pkgs/async/lib/src/stream_group.dart index 79f057f19..e02afcd2c 100644 --- a/pkgs/async/lib/src/stream_group.dart +++ b/pkgs/async/lib/src/stream_group.dart @@ -124,9 +124,9 @@ class StreamGroup implements Sink> { /// Adds [stream] as a member of this group. /// - /// Any events from [stream] will be emitted through [this.stream]. If this - /// group has a listener, [stream] will be listened to immediately; otherwise - /// it will only be listened to once this group gets a listener. + /// Any events from [stream] will be emitted through [StreamGroup.stream]. If + /// this group has a listener, [stream] will be listened to immediately; + /// otherwise it will only be listened to once this group gets a listener. /// /// If this is a single-subscription group and its subscription has been /// canceled, [stream] will be canceled as soon as its added. If this returns diff --git a/pkgs/fixnum/lib/src/int32.dart b/pkgs/fixnum/lib/src/int32.dart index 8045bc1fb..39acebbfe 100644 --- a/pkgs/fixnum/lib/src/int32.dart +++ b/pkgs/fixnum/lib/src/int32.dart @@ -8,7 +8,7 @@ import 'int64.dart'; import 'intx.dart'; import 'utilities.dart' as u; -/// An immutable 32-bit signed integer, in the range [-2^31, 2^31 - 1]. +/// An immutable 32-bit signed integer, in the range `[-2^31, 2^31 - 1]`. /// Arithmetic operations may overflow in order to maintain this range. class Int32 implements IntX { /// The maximum positive value attainable by an [Int32], namely diff --git a/pkgs/fixnum/lib/src/int64.dart b/pkgs/fixnum/lib/src/int64.dart index bbfcbd919..cb0e1cc6c 100644 --- a/pkgs/fixnum/lib/src/int64.dart +++ b/pkgs/fixnum/lib/src/int64.dart @@ -13,7 +13,7 @@ import 'int32.dart'; import 'intx.dart'; import 'utilities.dart' as u; -/// An immutable 64-bit signed integer, in the range [-2^63, 2^63 - 1]. +/// An immutable 64-bit signed integer, in the range `[-2^63, 2^63 - 1]`. /// Arithmetic operations may overflow in order to maintain this range. class Int64 implements IntX { // A 64-bit integer is represented internally as three non-negative