Commit 3298300d authored by Meng Zhuo's avatar Meng Zhuo Committed by Jonathan Amsterdam
Browse files

text/template: error on range over send channel

template range require channel contains RecvDir
if recv on send only channel will raise an panic.

Fixes #43065

Change-Id: Ie0ea70ce60e074bf8c9f2378e07ef1d4c41dc38f
Reviewed-on: https://go-review.googlesource.com/c/go/+/276532


Trust: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: default avatarJonathan Amsterdam <jba@google.com>
Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
parent 5a25a3fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment