Skip to content

Commit

Permalink
Simple deletion of "of course" phrases.
Browse files Browse the repository at this point in the history
  • Loading branch information
0rir committed Dec 4, 2021
1 parent fe2568f commit 5931228
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions doc/Language/5to6-perlfunc.pod6
Expand Up @@ -52,7 +52,7 @@ readable using smartmatch:
'/path/to/file'.IO ~~ :r
You can, of course, use an already opened filehandle. Here, using the filehandle
You can use an already opened filehandle. Here, using the filehandle
C<$fh>, is an example, using the method syntax for the file test:
=for code :preamble<my $fh;>
Expand Down Expand Up @@ -403,7 +403,7 @@ X<| defined - perlfunc>
Probably does what you expect, but technically it returns C<False> on
the type object, and C<True> otherwise. This may make more sense when
you realize that C<$num.raku> is the type C<Any> if you haven't assigned
anything to it, and the assigned value if you have. Can, of course be
anything to it, and the assigned value if you have. It can be
used as a method: C<$num.defined>. And any newly created class can have
its own C<.defined> method, thereby deciding how and when it should be
considered undefined.
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/classtut.pod6
Expand Up @@ -678,7 +678,7 @@ say $programmer.code_to_solve('halting problem'),
=head2 Overriding inherited methods
Of course, classes can override methods and attributes defined by parent
Classes can override methods and attributes defined by parent
classes by defining their own. The example below demonstrates the C<Baker>
class overriding the C<Cook>'s C<cook> method.
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/concurrency.pod6
Expand Up @@ -508,7 +508,7 @@ channel is closed:
There is also the non-blocking L<method poll|/type/Channel#method_poll>
that returns an available item from the channel or L<Nil|/type/Nil> if there
is no item or the channel is closed, this does of course mean that the
is no item or the channel is closed. This does mean that the
channel must be checked to determine whether it is closed:
my $c = Channel.new;
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/control.pod6
Expand Up @@ -529,7 +529,7 @@ parameter, C<$_>:
for @foo { 42.print } # prints 42 as many times as @foo has elements
Pointy block syntax or a L<placeholder|/language/variables#The_^_twigil>
may be used to name the parameter, of course.
may be used to name the parameter:
my @foo = 1..3;
for @foo -> $item { print $item }
Expand Down
4 changes: 2 additions & 2 deletions doc/Language/io-guide.pod6
Expand Up @@ -183,8 +183,8 @@ is there to help you with that.
=head4 Using IO::Handle
Of course, you can read from files using the L<IO::Handle|/type/IO::Handle>
type, which gives you a lot finer control over what you're doing:
You can read from files using the L<IO::Handle|/type/IO::Handle>
type; this gives you a finer control over the process.
=begin code
given 'some-file.txt'.IO.open {
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/io.pod6
Expand Up @@ -36,7 +36,7 @@ the file for you.
=head2 Line by line
Of course, we also have the option to read a file line-by-line. The new line
We also have the option to read a file line-by-line. The new line
separator (i.e., C<$*IN.nl-in>) will be excluded.
=begin code
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/list.pod6
Expand Up @@ -82,7 +82,7 @@ say ((<a b>,<c d>),(<e f>,<g h>))[1;0;1]; # says "f"
=head1 The @ sigil
Variables in Raku whose names bear the C<@> sigil are expected to
contain some sort of list-like object. Of course, other variables may
contain some sort of list-like object. Other variables may
also contain these objects, but C<@>-sigiled variables always do, and
are expected to act the part.
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/math.pod6
Expand Up @@ -235,7 +235,7 @@ wherever possible.
=head1 Numerical integration of ordinary differential equations
Raku is an amazing programming language, and of course, you can do a
Raku is an amazing programming language, and you can do a
lot of cool math with it. A great amount of work during an applied
mathematician's work is to simulate the models they create. For this
reason, in every coding language, a numerical integrator is a must-have.
Expand Down
6 changes: 3 additions & 3 deletions doc/Language/nativecall.pod6
Expand Up @@ -231,7 +231,7 @@ Note that the C<CPointer> representation can do nothing more than hold a C point
This means that your class cannot have extra attributes. However, for simple
libraries this may be a neat way to expose an object oriented interface to it.
Of course, you can always have an empty class:
You can always have an empty class:
class DoorHandle is repr('CPointer') { }
Expand Down Expand Up @@ -422,7 +422,7 @@ struct fields. Currently, structs can contain machine-sized integers, doubles,
strings, and other NativeCall objects (C<CArray>s, and those using the C<CPointer> and
C<CStruct> reprs). Other than that, you can do the usual set of things you would with
a class; you could even have some of the attributes come from roles or have them
inherited from another class. Of course, methods are completely fine too. Go wild!
inherited from another class. Methods are completely fine too. Go wild!
C<CStruct> objects are passed to native functions by reference and native functions
must also return C<CStruct> objects by reference. The memory management
Expand Down Expand Up @@ -827,7 +827,7 @@ to print the home directory of the current user:
say getpwuid(getuid()).pw_dir;
Though of course C<$*HOME> is a much easier way :-)!
Although C<$*HOME> is a much easier way :-)!
=head1 Exported variables
Expand Down
4 changes: 2 additions & 2 deletions doc/Language/numerics.pod6
Expand Up @@ -414,7 +414,7 @@ my Num $y = <42e0>;
say $y.^name; # OUTPUT: «NumStr␤»
=end code
This, of course, also applies to parameter
This also applies to parameter
L<coercers|/type/Signature#Coercion_type>:
=begin code
Expand All @@ -425,7 +425,7 @@ foo <42>; # OUTPUT: «IntStr␤»
The given allomorph is I<already> an object of type L<Int|/type/Int>, so
it does not get converted to a "plain" L<Int|/type/Int> in this case.
Of course, the power of allomorphs would be severely diminished if there
The power of allomorphs would be severely diminished if there
were no way to "collapse" them to one of their components. Thus, if you
explicitly call a method with the name of the type to coerce to, you'll
get just that component. The same applies to any proxy methods, such as
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/objects.pod6
Expand Up @@ -1454,7 +1454,7 @@ system. Thus it should be no surprise that in Rakudo, the class name of the
metaclass that controls class behavior is called C<Perl6::Metamodel::ClassHOW>.
For each class there is one instance of C<Perl6::Metamodel::ClassHOW>.
But of course the metamodel does much more for you. For example, it allows
But the metamodel does much more for you. For example, it allows
you to introspect objects and classes. The calling convention for methods on
metaobjects is to call the method on the metaobject and pass in the object
of interest as first argument to the object. So to get the name of the class
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/operators.pod6
Expand Up @@ -3165,7 +3165,7 @@ say (1, 1, -> $a, $b { $a + $b } ... *)[^8]; # OUTPUT: «(1 1 2 3 5 8 13 21)␤
# same but shorter
say (1, 1, * + * ... *)[^8]; # OUTPUT: «(1 1 2 3 5 8 13 21)␤»
Of course the generator can also take only one argument.
The generator can also take only one argument.
say 5, { $_ * 2 } ... 40; # OUTPUT: «5 10 20 40␤»
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/pod.pod6
Expand Up @@ -73,7 +73,7 @@ outside of strings. Hash keys need not be quote-delimited unless they contain
significant whitespace. Strings entered inside angle brackets become lists if
any whitespace is used inside the angle brackets.
All option keys and values must, of course, be constants since Pod6 is a
All option keys and values must be constants since Pod6 is a
specification language, not a programming language. Specifically, option
values cannot be closures. See L<Synopsis 2|https://design.raku.org/S02.html>
for details of the various
Expand Down
2 changes: 1 addition & 1 deletion doc/Language/variables.pod6
Expand Up @@ -419,7 +419,7 @@ The C<:> twigil declares a formal named parameter to a block or subroutine.
Variables declared using this form are a type of placeholder variable too.
Therefore the same things that apply to variables declared using the C<^>
twigil also apply here (with the exception that they are not positional and
therefore not ordered using Unicode order, of course). For instance:
therefore not ordered using Unicode order). For instance:
say { $:add ?? $^a + $^b !! $^a - $^b }( 4, 5 ) :!add
# OUTPUT: «-1␤»
Expand Down
4 changes: 2 additions & 2 deletions doc/Type/Bag.pod6
Expand Up @@ -18,7 +18,7 @@ L<.pick|/routine/pick> and L<.roll|/routine/roll>.
Objects/values of any type are allowed as bag elements. Within a
C<Bag>, items that would compare positively with the L<===|/routine/===> operator are
considered the same element, with the number of how many there are as
its weight. But of course you can also easily get back the expanded
its weight. But you can also easily get back the expanded
list of items (without the order):
=begin code
Expand Down Expand Up @@ -76,7 +76,7 @@ require you to use parentheses around arguments:
say (1..5) (+) 4; # OUTPUT: «Bag(1 2 3 4(2) 5)␤»
Of course, you can also create a C<Bag> with the C<.new> method.
You can also create a C<Bag> with the C<.new> method.
my $breakfast = Bag.new( <spam eggs spam spam bacon spam> );
Expand Down
2 changes: 1 addition & 1 deletion doc/Type/Cool.pod6
Expand Up @@ -1289,7 +1289,7 @@ L<Match|/type/Match>, can be converted to a string. This is what happens in this
# OUTPUT: «(easy easy)␤»
The example above illustrates two of the ways C<words> can be invoked, with the
first argument turned into invocant by its signature. Of course, C<Inf> is the
first argument turned into invocant by its signature. C<Inf> is the
default value of the second argument, so in both cases (and forms) it can be
simply omitted.
Expand Down
2 changes: 1 addition & 1 deletion doc/Type/Proc.pod6
Expand Up @@ -73,7 +73,7 @@ the external program blocks until its standard error buffer is being drained.
You can avoid this by using C<:merge> to join the external program's
standard output and error streams, so that you only need to read from
one pipe. Of course, this presupposes that you do not need separate access
one pipe. This presupposes that you do not need separate access
to the two streams. If you do, the only save approach is to use
L<Proc::Async>.
Expand Down
2 changes: 1 addition & 1 deletion doc/Type/Range.pod6
Expand Up @@ -138,7 +138,7 @@ As an example:
say $r ~~ $p; # OUTPUT: «False␤» (same as $p.ACCEPTS( $r )
say $p ~~ $r; # OUTPUT: «True␤» (same as $r.ACCEPTS( $p )
Of course, an infinite C<Range> always contains another C<Range>, therefore:
An infinite C<Range> always contains any other C<Range>, therefore:
say 1..10 ~~ -∞..∞; # OUTPUT: «True␤»
say 1..10 ~~ -∞^..^∞; # OUTPUT: «True␤»
Expand Down
2 changes: 1 addition & 1 deletion doc/Type/Set.pod6
Expand Up @@ -57,7 +57,7 @@ parentheses around arguments:
say (1..5) (^) 4; # OUTPUT: «Set(1 2 3 5)␤»
Of course, you can also create a C<Set> with the C<.new> method.
You can also create a C<Set> with the C<.new> method.
my $fruits = Set.new( <peach apple orange apple apple> );
Expand Down

0 comments on commit 5931228

Please sign in to comment.