Skip to content

Commit

Permalink
Merge pull request dbt-labs#2507 from szn/patch-1
Browse files Browse the repository at this point in the history
Fix return.md example
  • Loading branch information
mirnawong1 authored Dec 23, 2022
2 parents 739982c + f152976 commit 3d3697e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/reference/dbt-jinja-functions/return.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ __Args__:

The `return` function can be used in macros to return data to the caller. The type of the data (dict, list, int, etc) will be preserved through the `return` call.

<File name='macros/example.sql'>
<File name='macros/get_data.sql'>

```sql
{% macro get_data() %}
Expand All @@ -29,7 +29,7 @@ The `return` function can be used in macros to return data to the caller. The ty

select
-- getdata() returns a list!
{% for i in getdata() %}
{% for i in get_data() %}
{{ i }}
{% if not loop.last %},{% endif %}
{% endfor %}
Expand Down

0 comments on commit 3d3697e

Please sign in to comment.