Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Oops, fix where :D goes
  • Loading branch information
Brock Wilcox committed Nov 10, 2015
1 parent 0a3175f commit 7951121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/syntax.pod
Expand Up @@ -382,7 +382,7 @@ A L<Regex|/type/Regex> is declared with slashes like C</foo/>. Note that this C<
my $x; # simple lexical variable
my $x = 7; # initialize the variable
my Int $x = 7; # declare the type
my Int $x:D = 7; # specify that the value must be defined (not undef)
my Int:D $x = 7; # specify that the value must be defined (not undef)
my Int $x where { $_ > 3 } = 7; # constrain the value based on a function
my Int $x where * > 3 = 7; # same constraint, but using L<Whatever> short-hand
Expand Down

0 comments on commit 7951121

Please sign in to comment.