Error in widget.newScrollView() example code

The example code for widget.newScrollView() creates an image to insert into the scrollView, at the end, but it refers to bg, which does not exist:

background.x = bg.contentWidth * 0.5
background.y = bg.contentHeight * 0.5

So the result is an error:

attempt to index global ‘bg’ (a nil value)

Is the use of bg a typo? Isn’t this supposed to be display instead of bg?

The example code with the problem is here:

http://docs.coronalabs.com/api/library/widget/newScrollView.html

Or is it supposed to be background instead of bg, rather?

looks like an issue with the docs.  You can go to the bottom of the doc page and click on the “Like it But” button and report the issue to the documentation team.

We appreciate it!

OK, I just reported the problem to the doc team. Thanks.

Or is it supposed to be background instead of bg, rather?

looks like an issue with the docs.  You can go to the bottom of the doc page and click on the “Like it But” button and report the issue to the documentation team.

We appreciate it!

OK, I just reported the problem to the doc team. Thanks.