Skip to content

Commit 16e4583

Browse files
committed
Fix some "an" usage
1 parent 4866baf commit 16e4583

18 files changed

+23
-23
lines changed

doc/Language/5to6-perlfunc.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ Replaced by C<chars>, typically used as a method (C<$string.chars>), but
933933
also works as a function.
934934

935935
The Raku ecosystem has a module L<C<P5length>|https://raku.land/zef:lizmat/P5length>
936-
which exports an C<length> function that mimics the original Perl behavior
936+
which exports a C<length> function that mimics the original Perl behavior
937937
as much as possible.
938938

939939
=head2 X<__LINE__|Other languages,__LINE__ - perlfunc>

doc/Language/contexts.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ say +" \n "; # OUTPUT: «0␤»
9393
Whitespace in any quantity will be converted to 0, as is shown in the last
9494
statement. In the case of I<listy> things, the numeric value will be in general
9595
equivalent to C<.elems>; in some cases, like
96-
L<Thread|/routine/Numeric#(Thread)_method_Numeric>, it will return an unique
96+
L<Thread|/routine/Numeric#(Thread)_method_Numeric>, it will return a unique
9797
thread identifier.
9898

9999
=head1 X<String|Language,string context>

doc/Language/glossary.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ sufficiently different from its arguments that op= makes little sense.
306306
=head1 X<Exegesis|Reference,Exegesis>
307307

308308
A document originally written by L<TheDamian|#TheDamian>, in which he tried to explain
309-
the L<Apocalypses|#Apocalypse> to the common (wo)man. Now only kept as an
309+
the L<Apocalypses|#Apocalypse> to the common (wo)man. Now only kept as a
310310
historical document for reference. See also L<Synopsis|#Synopsis>.
311311

312312
X<|Reference,forward declaration>

doc/Language/hashmap.rakudoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ or
185185

186186
Please note that curly braces are used only in the case that we are not
187187
assigning it to a C<%>-sigiled variable; in case we use it for a C<%>-sigiled
188-
variable we will get an C<Potential difficulties:␤ Useless use of hash
189-
composer on right side of hash assignment; did you mean := instead?> error. As
188+
variable we will get an error of C<Potential difficulties:␤ Useless use of hash
189+
composer on right side of hash assignment; did you mean := instead?>. As
190190
this error indicates, however, we can use curly braces as long as we use also
191191
binding:
192192

doc/Language/objects.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ my $vacation = Journey.new(
262262
# Use an accessor; this outputs Sweden.
263263
say $vacation.origin;
264264

265-
# Use an rw accessor to change the value.
265+
# Use a rw accessor to change the value.
266266
$vacation.notes = 'Pack hiking gear and sunglasses!';
267267
=end code
268268

doc/Language/statement-prefixes.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ say $!; # OUTPUT: «Cannot pop from an empty Array␤..»
105105

106106
=head2 X<C<do>|Syntax,do (statement prefix)>
107107

108-
C<do> can be used as an statement prefix to disambiguate the statement they
108+
C<do> can be used as a statement prefix to disambiguate the statement they
109109
precede; this is needed, for instance, if you want to assign the result of a
110110
C<for> statement. A bare C<for> will fail, but this will work:
111111

doc/Language/subscripts.rakudoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ C<AT-POS> (which would have to create and return a potentially expensive
915915
container object).
916916

917917
Note that implementing C<ASSIGN-POS> does I<not> relieve you from making
918-
C<AT-POS> an C<rw> method though, because less trivial
918+
C<AT-POS> a C<rw> method though, because less trivial
919919
assignments/modifications such as C<@numbers[5]++> will still use
920920
C<AT-POS>.
921921

@@ -1098,7 +1098,7 @@ C<AT-KEY> (which would have to create and return a potentially expensive
10981098
container object).
10991099

11001100
Note that implementing C<ASSIGN-KEY> does I<not> relieve you from making
1101-
C<AT-KEY> an C<rw> method though, because less trivial
1101+
C<AT-KEY> a C<rw> method though, because less trivial
11021102
assignments/modifications such as C<<%age<Claire>++>> will still use
11031103
C<AT-KEY>.
11041104

doc/Type/Allomorph.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ uniquely identifies the object.
261261

262262
Compare two C<Allomorph> objects. The comparison is done on the
263263
L<C<Numeric>|/type/Numeric> value first and then on the L<C<Str>|/type/Str> value. If you want to
264-
compare in a different order then you would coerce to an L<C<Numeric>|/type/Numeric>
264+
compare in a different order then you would coerce to a L<C<Numeric>|/type/Numeric>
265265
or L<C<Str>|/type/Str> value first:
266266

267267
my $f = IntStr.new(42, "smaller");

doc/Type/Compiler.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and the C<$*PERL> variables.
2121

2222
=head2 method id
2323

24-
Returns an unique identifier, a long hexadecimal string
24+
Returns a unique identifier, a long hexadecimal string
2525

2626
=head2 method release
2727

doc/Type/DateTime.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ is from the components (year, month, day, hour, ...) separately. Another is to
6262
pass a L<C<Date>|/type/Date> object for the date component, and specify the time
6363
component-wise. Yet another is to obtain the time from an
6464
L<C<Instant>|/type/Instant>, and only supply the time zone and formatter. Or
65-
instead of an Instant you can supply an L<C<Numeric>|/type/Numeric> as a UNIX timestamp.
65+
instead of an Instant you can supply a L<C<Numeric>|/type/Numeric> as a UNIX timestamp.
6666

6767
You can also supply a L<C<Str>|/type/Str> formatted in ISO 8601 timestamp
6868
notation or as a full L<RFC 3339|https://tools.ietf.org/html/rfc3339>

doc/Type/IO/Socket/INET.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ say $conn.recv;
4444
$conn.close;
4545
=end code
4646

47-
Please bear in mind that this is a synchronous connection; an attempt by any of the nodes to write without the other reading will produce an C<Could not receive data from socket: Connection reset by peer> error.
47+
Please bear in mind that this is a synchronous connection; an attempt by any of the nodes to write without the other reading will produce the error C<Could not receive data from socket: Connection reset by peer>.
4848

4949
=head1 Methods
5050

doc/Type/Int.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ These notations allow you to use variables, too:
5050
multi method new(int \value --> Int:D)
5151

5252
The first form will throw an exception; the second and third form will create
53-
an new Int from the actual integer value contained in the variable.
53+
a new Int from the actual integer value contained in the variable.
5454

5555
=head2 method Str
5656

doc/Type/Map.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Returns the number of pairs stored in the Map.
9090
multi method ACCEPTS(Map:D: Regex $topic)
9191
multi method ACCEPTS(Map:D: Any $topic)
9292

93-
Used in smartmatching if the right-hand side is an C<Map>.
93+
Used in smartmatching if the right-hand side is a C<Map>.
9494

9595
If the topic is list-like (L<C<Positional>|/type/Positional>), returns True if
9696
any of the list elements exist as a key in the Map.

doc/Type/Metamodel/Mixins.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This makes it possible for mixins to not only have composable methods,
5757
but composable state as well. Using this feature, the example above can
5858
be rewritten so billboards can be vandalized more than once without
5959
needing to generate more mixins by making C<Billboard::Vandalism>'s
60-
C<$vandalism> named parameter an L<rw|/type/Attribute#trait_is_rw>
60+
C<$vandalism> named parameter a L<rw|/type/Attribute#trait_is_rw>
6161
mixin attribute instead:
6262

6363
=begin code

doc/Type/Range.rakudoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ type of the instance (C<Range>) and the C<min> and C<max> attributes:
431431
multi infix:<+>(Range:D \r, Real:D \v)
432432
multi infix:<+>(Real:D \v, Range:D \r)
433433

434-
Takes an L<C<Real>|/type/Real> and adds that number to both
434+
Takes a L<C<Real>|/type/Real> and adds that number to both
435435
boundaries of the C<Range> object. Be careful with
436436
the use of parenthesis.
437437

@@ -442,7 +442,7 @@ the use of parenthesis.
442442

443443
multi infix:<->(Range:D \r, Real:D \v)
444444

445-
Takes an L<C<Real>|/type/Real> and subtract that number to both
445+
Takes a L<C<Real>|/type/Real> and subtract that number to both
446446
boundaries of the C<Range> object. Be careful with
447447
the use of parenthesis.
448448

@@ -454,7 +454,7 @@ the use of parenthesis.
454454
multi infix:<*>(Range:D \r, Real:D \v)
455455
multi infix:<*>(Real:D \v, Range:D \r)
456456

457-
Takes an L<C<Real>|/type/Real> and multiply both boundaries
457+
Takes a L<C<Real>|/type/Real> and multiply both boundaries
458458
of the C<Range> object by that number.
459459

460460
say (1..2) * 2; # OUTPUT: «2..4␤»
@@ -463,7 +463,7 @@ of the C<Range> object by that number.
463463

464464
multi infix:</>(Range:D \r, Real:D \v)
465465

466-
Takes an L<C<Real>|/type/Real> and divide both boundaries
466+
Takes a L<C<Real>|/type/Real> and divide both boundaries
467467
of the C<Range> object by that number.
468468

469469
say (2..4) / 2; # OUTPUT: «1..2␤»

doc/Type/independent-routines.rakudoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ type, it should behave as if its signature was just:
12721272
Autovivification to an instance of the new type is L<provided by the default
12731273
base class|/routine/append#(Any)_method_append> if the new type implements the
12741274
L<C<Positional>|/type/Positional> role. If the new type is not L<C<Positional>|/type/Positional>, autovivification can
1275-
be supported by an adding a multi method with a signature like
1275+
be supported by adding a multi method with a signature like
12761276

12771277
multi method push(::?CLASS:U: **@values is raw --> ::?CLASS:D)
12781278

writing-docs/EXAMPLES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For pedagogical reasons, it's
3939
OK to break what would otherwise be a large block of code into smaller
4040
chunks and discuss each one separately - we still want to do our best
4141
to compile these individual chunks. However, avoid this practice across
42-
methods on a Type/ page, which an be split up to show only a single method.
42+
methods on a Type/ page, which can be split up to show only a single method.
4343
Even on a Language/ page, avoid continuing an example for more than a
4444
page or so.
4545

xt/rakudoc-types.rakutest

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ sub is-valid-type($node, $parent, $file) {
112112
pass "L<{render-node($node)}|$meta>";
113113
} else {
114114
if $meta.starts-with('/routine/') {
115-
# Is this pointing to an routine page? /routine is generated, so we cannot verify
115+
# Is this pointing to a routine page? /routine is generated, so we cannot verify
116116
# the existence of an actual file; trust if present.
117117
# Should be caught on error-report in site build
118118
pass "L<{render-node($node)}|$meta> - routine";

0 commit comments

Comments
 (0)