Skip to content

Commit ec5643f

Browse files
committed
Merge pull request hashicorp#5482 from randomeizer/patch-1
Added a cast to "(*schema.Provider)"
2 parents bcf1bca + 0c15284 commit ec5643f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/source/docs/plugins/provider.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ an error if it is invalid. An example test is shown below:
102102

103103
```
104104
func TestProvider(t *testing.T) {
105-
if err := Provider().InternalValidate(); err != nil {
105+
if err := Provider().(*schema.Provider).InternalValidate(); err != nil {
106106
t.Fatalf("err: %s", err)
107107
}
108108
}

0 commit comments

Comments
 (0)