Skip to content

Commit d86dfea

Browse files
committed
Spelling fixes
1 parent 12d9048 commit d86dfea

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

canonical_json/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Canonical JSON Encoder/Decoder
22
==============================
33
This package provides an encoder and decoder for encoding/decoding
44
[canonical JSON][1]. The canonical JSON format does not support floating-point
5-
numbers and the decoder validates that the value is indeed a canoncially encoded
5+
numbers and the decoder validates that the value is indeed a canonically encoded
66
JSON value.
77

88
**Disclaimer:** This is not an officially supported Google product.
@@ -44,7 +44,7 @@ This follows the rules outlined in [canoncial JSON][1], with the deviation that
4444
this package requires strings to be encoded as valid UTF-8 in
4545
[Unicode Normalization Form C][4] rather than arbitrary
4646
byte values. This is only recommended by [canoncial JSON][1], but this library
47-
takes the oppinion that binary values should be encoded.
47+
takes the opinion that binary values should be encoded.
4848

4949
## See Also
5050

canonical_json/lib/canonical_json.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/// [OLPC project](http://wiki.laptop.org/go/Canonical_JSON), but rather than
3737
/// supporting arbitrary byte values as strings, strings are always encoded as
3838
/// UTF-8 in Unicode Normalization Form C and decoded as UTF-8 causing an
39-
/// [InvalidCanonicalJsonException] exception in case of strings not satifying
39+
/// [InvalidCanonicalJsonException] exception in case of strings not satisfying
4040
/// this property.
4141
library canonical_json;
4242

canonical_json/lib/src/encoder.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void _encode(Uint8Buffer output, Object input, Object original) {
4343
}
4444

4545
// Handle strings, but always encoding to UTF-8 in Unicode Normalization Form
46-
// C with quotes and backslaces escaped.
46+
// C with quotes and backspaces escaped.
4747
if (input is String) {
4848
final s = fastNfc(input).replaceAll(r'\', r'\\').replaceAll('"', r'\"');
4949
output.add(char('"'));

chunked_stream/lib/chunked_stream.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// * [readChunkedStream], for reading a chunked stream into a single big list.
2121
/// Often useful for converting [Stream<List<int>>] to [List<int>].
2222
/// * [limitChunkedStream], for wrapping a chunked stream as a new stream with
23-
/// length limit, useful when acceting input streams from untrusted network.
23+
/// length limit, useful when accepting input streams from untrusted network.
2424
/// * [bufferChunkedStream], for buffering a chunked stream. This can be useful
2525
/// to improve I/O performance if reading the stream chunk by chunk with
2626
/// frequent pause/resume calls, as is the case when using

chunked_stream/lib/src/chunked_stream_iterator.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ class ChunkedStreamIterator<T> {
6464
/// Read a series of chunks from the stream until we have [size] number of
6565
/// items, then return these items.
6666
///
67-
/// This returns less than [size], if end of stream occours before [size]
67+
/// This returns less than [size], if end of stream occurs before [size]
6868
/// number of items have been received.
6969
///
7070
/// If an error occurs before receiving [size] items, the error will be thrown
7171
/// and next call to [read] will with data already buffered from before the
72-
/// error occured.
72+
/// error occurred.
7373
///
7474
/// This method may not be called concurrently.
7575
Future<List<T>> read(int size) async {

http_methods/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ List of Registered HTTP Methods
22
===============================
33

44
This package provides a list of [all registered HTTP methods][1], as well as
5-
whether a method is considers _safe_, that is, specififed in [HTTP 1.1][2].
5+
whether a method is considers _safe_, that is, specified in [HTTP 1.1][2].
66

77
**Disclaimer:** This is not an officially supported Google product.
88

pem/test/testcases.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Nkn3Eos8EiZByi9DVsyfy9eejh+8AXgp
122122
/// Test cases for non-strict parsing mode.
123123
///
124124
/// These are useful as when passed in textual format, it's easy to introduce
125-
/// extract whitespace, identation, tabs, CR LF, etc.
125+
/// extract whitespace, indentation, tabs, CR LF, etc.
126126
const laxTestCases = """
127127
-----BEGIN CERTIFICATE-----
128128
MIICLDCCAdKgAwIBAgIBADAKBggqhkjOPQQDAjB9MQswCQYDVQQGEwJCRTEPMA0G

0 commit comments

Comments
 (0)