Skip to content

Commit 355b010

Browse files
authored
* spelling: available Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: comparison Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: item Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: its Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: keys Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: nonexistent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: occurred Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: returns Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: scope Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: service Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: this Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: unnamed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: useful Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 8e80241 commit 355b010

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

pkgs/gcloud/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@
158158

159159
* Remove support for `FilterRelation.In` and "propertyname IN" for queries:
160160
This is not supported by the newer APIs and was originally part of fat-client
161-
libraries which performed multiple queries for each iten in the list.
161+
libraries which performed multiple queries for each item in the list.
162162

163-
* Adds optional `forComparision` named argument to `Property.encodeValue` which
163+
* Adds optional `forComparison` named argument to `Property.encodeValue` which
164164
will be set to `true` when encoding a value for comparison in queries.
165165

166166
* Upgrade to newer versions of `package:googleapis` and `package:googleapis_beta`
@@ -235,7 +235,7 @@
235235

236236
## 0.1.3+1
237237

238-
* Change the service scope keys keys to non-private symbols.
238+
* Change the service scope keys to non-private symbols.
239239

240240
## 0.1.3
241241

pkgs/gcloud/lib/datastore.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ class DatastoreError implements Exception {
5454
final String message;
5555

5656
DatastoreError([String? message])
57-
: message = message ?? 'DatastoreError: An unknown error occured';
57+
: message = message ?? 'DatastoreError: An unknown error occurred';
5858

5959
@override
6060
String toString() => message;
6161
}
6262

6363
class UnknownDatastoreError extends DatastoreError {
64-
UnknownDatastoreError(error) : super('An unknown error occured ($error).');
64+
UnknownDatastoreError(error) : super('An unknown error occurred ($error).');
6565
}
6666

6767
class TransactionAbortedError extends DatastoreError {
@@ -123,7 +123,7 @@ class Entity {
123123
/// A key can uniquely identify a datastore `Entity`s. It consists of a
124124
/// partition and path. The path consists of one or more `KeyElement`s.
125125
///
126-
/// A key may be incomplete. This is usesful when inserting `Entity`s which IDs
126+
/// A key may be incomplete. This is useful when inserting `Entity`s which IDs
127127
/// should be automatically allocated.
128128
///
129129
/// Example of a fully populated [Key]:
@@ -386,7 +386,7 @@ abstract class Datastore {
386386
///
387387
/// The [project] is the name of the Google Cloud project.
388388
///
389-
/// Returs an object providing access to Datastore. The passed-in [client]
389+
/// Returns an object providing access to Datastore. The passed-in [client]
390390
/// will not be closed automatically. The caller is responsible for closing
391391
/// it.
392392
factory Datastore(http.Client client, String project) {

pkgs/gcloud/lib/pubsub.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PubSub get pubsubService => ss.lookup(_pubsubKey) as PubSub;
3131

3232
/// Registers the [pubsub] object within the current service scope.
3333
///
34-
/// The provided `pubsub` object will be avilable via the top-level
34+
/// The provided `pubsub` object will be available via the top-level
3535
/// `pubsubService` getter.
3636
///
3737
/// Calling this function outside of a service scope will result in an error.
@@ -121,7 +121,7 @@ abstract class PubSub {
121121
///
122122
/// The [project] is the name of the Google Cloud project.
123123
///
124-
/// Returs an object providing access to Pub/Sub. The passed-in [client] will
124+
/// Returns an object providing access to Pub/Sub. The passed-in [client] will
125125
/// not be closed automatically. The caller is responsible for closing it.
126126
factory PubSub(http.Client client, String project) {
127127
var emulator = Platform.environment['PUBSUB_EMULATOR_HOST'];

pkgs/gcloud/lib/service_scope.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class _ServiceScope {
261261
_destroyed = true;
262262
if (errors.isNotEmpty) {
263263
throw Exception(
264-
'The following errors occured while running scope exit handlers'
264+
'The following errors occurred while running scope exit handlers'
265265
': $errors');
266266
}
267267
});

pkgs/gcloud/lib/src/datastore_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class DatastoreImpl implements datastore.Datastore {
277277
if (error.status == 400) {
278278
return Future.error(
279279
datastore.ApplicationError(
280-
error.message ?? 'An unknown error occured',
280+
error.message ?? 'An unknown error occurred',
281281
),
282282
stack,
283283
);

pkgs/gcloud/lib/src/db/db.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Future _commitHelper(DatastoreDB db,
425425

426426
for (var model in inserts) {
427427
// If parent was not explicitly set, we assume this model will map to
428-
// it's own entity group.
428+
// its own entity group.
429429
model.parentKey ??= db.defaultPartition.emptyKey;
430430
if (model.id == null) {
431431
autoIdModelInserts.add(model);

pkgs/gcloud/lib/storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/// In most cases relative names are used. Absolute names are typically
4444
/// only used for operations involving objects in different buckets.
4545
///
46-
/// For most of the APIs in ths library which take instances of other classes
46+
/// For most of the APIs in this library which take instances of other classes
4747
/// from this library it is the assumption that the actual implementations
4848
/// provided here are used.
4949
library;
@@ -260,7 +260,7 @@ abstract class AclScope {
260260
/// are set in the different subclasses.
261261
final String _id;
262262

263-
/// The type of this acope this ACL scope represents.
263+
/// The type of this scope this ACL scope represents.
264264
final int _type;
265265

266266
/// ACL scope for all authenticated users.

pkgs/gcloud/test/datastore/e2e/datastore_test_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void runTests(Datastore datastore, String? namespace) {
441441
});
442442
});
443443

444-
// This should not work with [unamedEntities20], but is working!
444+
// This should not work with [unnamedEntities20], but is working!
445445
// FIXME TODO FIXME : look into this.
446446
test('delete_transactional', () {
447447
return insert([], unnamedEntities99, transactional: false).then((keys) {

pkgs/gcloud/test/service_scope_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void main() {
3232
}));
3333
});
3434

35-
test('non-existent-key', () {
35+
test('nonexistent-key', () {
3636
return ss.fork(expectAsync0(() {
3737
expect(ss.lookup(1), isNull);
3838
return Future.value();
@@ -188,7 +188,7 @@ void main() {
188188
});
189189

190190
test('nested-fork-and-insert', () {
191-
// Ensure that independently fork()ed serice scopes can insert keys
191+
// Ensure that independently fork()ed service scopes can insert keys
192192
// independently and they cannot see each others values but can see parent
193193
// service scope values.
194194
var rootKey = 1;

0 commit comments

Comments
 (0)