blob: e191733facc612d5a9853513efd1e1b9a6349b23 [file] [view]
---
title: InvalidRangeExpr
layout: article
---
<!-- Copyright 2023 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. -->
<!-- Code generated by generrordocs.go; DO NOT EDIT. -->
```
InvalidRangeExpr occurs when the type of a range expression is not array,
slice, string, map, or channel.
Example:
func f(i int) {
for j := range i {
println(j)
}
}
```