Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Turned notetip tags into sidebars, which Pod::PseudoPod::LaTeX *does*…

… know how

to handle.
  • Loading branch information...
commit af0075b5f1a92b12ca8dfc242fd2af155b2ea6e9 1 parent 43869dd
@chromatic chromatic authored
Showing with 6 additions and 6 deletions.
  1. +4 −4 src/multi-dispatch.pod
  2. +2 −2 src/regexes.pod
View
8 src/multi-dispatch.pod
@@ -159,12 +159,12 @@ C<where> clause executes. Any Perl 6 compiler is free to optimize away type
checks it knows will succeed. In the current Rakudo implementation, the second
line with C<say> will print a higher number than the first.
-=begin notetip
+=begin sidebar
You I<can> do this, but you should avoid it in anything other than example
code. Relying on the side effects of type checks produces unreliable code.
-=end notetip
+=end sidebar
=head1 Narrowness
@@ -451,13 +451,13 @@ which prevents accidental overriding of built-insN<One of the very rare
exceptions is the smart match operator C<< infix:<~~> >> which is not easily
overloadable. Instead it redispatches to overloadable multi methods.>>.
-=begin notetip
+=begin sidebar
To hide all candidates of a multi and replace them by another sub, you can
declare it as C<only sub YourSub>, though at the time of writing, no compiler
supports this.
-=end notetip
+=end sidebar
=head1 Multi Methods
View
4 src/regexes.pod
@@ -738,13 +738,13 @@ position (C<$m.orig.substr(0, $m.from)>), splitting it by newlines and
counting the elements. The column is determined by searching backwards from
the match position, and calculating the difference to the match position.
-=begin notetip
+=begin sidebar
The C<rindex> method searches a string for another substring, starting at the
end of the string, moving forward until the search string is found. It returns
the position of search string.
-=end notetip
+=end sidebar
Using a match object as an array yields access to the positional captures,
using it as a hash reveals the named captures - which is what C<< $<dup> >>
Please sign in to comment.
Something went wrong with that request. Please try again.