Skip to content

Commit

Permalink
fix: fix readme example code error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 11, 2021
1 parent 9b5bc88 commit 2a13513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use PhpPkg\EasyTpl\EasyTemplate;
$tplCode = <<<'CODE'
My name is {{ $name | strtoupper }},
My develop tags:
{{ foreach($tags => $tag) }}
{{ foreach($tags as $tag) }}
- {{ $tag }}

{{ endforeach }}
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use PhpPkg\EasyTpl\EasyTemplate;
$tplCode = <<<'CODE'
My name is {{ $name | strtoupper }},
My develop tags:
{{ foreach($tags => $tag) }}
{{ foreach($tags as $tag) }}
- {{ $tag }}

{{ endforeach }}
Expand Down

0 comments on commit 2a13513

Please sign in to comment.