Skip to content

Commit 22762fd

Browse files
committed
Fixes documentation errors
1 parent da7feac commit 22762fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/CSS/Sass/Type.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ or `CSS::Sass::Type::List::Comma`.
1313
my $null = CSS::Sass::Type->new(undef); # => 'null'
1414
my $number = CSS::Sass::Type->new(42.35); # => 42.35
1515
my $string = CSS::Sass::Type->new("foobar"); # => 'foobar'
16-
my $map = CSS::Sass::Type::Map->new("key" => "foobar"); # 'key: foobar'
17-
my $list = CSS::Sass::Type::List->new("foo", 42, "bar"); # 'foo, 42, bar'
16+
my $map = CSS::Sass::Type->new({ key => "foobar" }); # 'key: foobar'
17+
my $list = CSS::Sass::Type->new([ "foo", 42, "bar" ]); # 'foo, 42, bar'
1818
my $space = CSS::Sass::Type::List::Space->new("foo", "bar"); # 'foo bar'
1919
my $comma = CSS::Sass::Type::List::Comma->new("foo", "bar"); # 'foo, bar'
2020

@@ -70,13 +70,13 @@ It only implements a generic constructor, which accepts native perl data types
7070

7171
## `CSS::Sass::Type::List::Comma`
7272

73-
my $list = CSS::Sass::List::Comma->new('foo', 'bar');
73+
my $list = CSS::Sass::Type::List::Comma->new('foo', 'bar');
7474
my $string = "$list"; # eq 'foo, bar'
7575
my $value = $list->[0]; # eq 'foo'
7676

7777
## `CSS::Sass::Type::List::Space`
7878

79-
my $list = CSS::Sass::List::Space->new('foo', 'bar');
79+
my $list = CSS::Sass::Type::List::Space->new('foo', 'bar');
8080
my $string = "$list"; # eq 'foo bar'
8181
my $value = $list->[-1]; # eq 'bar'
8282

lib/CSS/Sass/Type.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ or C<CSS::Sass::Type::List::Comma>.
328328
my $null = CSS::Sass::Type->new(undef); # => 'null'
329329
my $number = CSS::Sass::Type->new(42.35); # => 42.35
330330
my $string = CSS::Sass::Type->new("foobar"); # => 'foobar'
331-
my $map = CSS::Sass::Type::Map->new("key" => "foobar"); # 'key: foobar'
332-
my $list = CSS::Sass::Type::List->new("foo", 42, "bar"); # 'foo, 42, bar'
331+
my $map = CSS::Sass::Type->new({ key => "foobar" }); # 'key: foobar'
332+
my $list = CSS::Sass::Type->new([ "foo", 42, "bar" ]); # 'foo, 42, bar'
333333
my $space = CSS::Sass::Type::List::Space->new("foo", "bar"); # 'foo bar'
334334
my $comma = CSS::Sass::Type::List::Comma->new("foo", "bar"); # 'foo, bar'
335335
@@ -385,13 +385,13 @@ It only implements a generic constructor, which accepts native perl data types
385385
386386
=head2 C<CSS::Sass::Type::List::Comma>
387387
388-
my $list = CSS::Sass::List::Comma->new('foo', 'bar');
388+
my $list = CSS::Sass::Type::List::Comma->new('foo', 'bar');
389389
my $string = "$list"; # eq 'foo, bar'
390390
my $value = $list->[0]; # eq 'foo'
391391
392392
=head2 C<CSS::Sass::Type::List::Space>
393393
394-
my $list = CSS::Sass::List::Space->new('foo', 'bar');
394+
my $list = CSS::Sass::Type::List::Space->new('foo', 'bar');
395395
my $string = "$list"; # eq 'foo bar'
396396
my $value = $list->[-1]; # eq 'bar'
397397

0 commit comments

Comments
 (0)