Skip to content

Commit ad1db8f

Browse files
authored
Fix typo frragment -> fragment (#380)
<!-- Thanks for your contribution! Check out the [contributing docs](https://github.com/Khan/genqlient/blob/main/docs/CONTRIBUTING.md) for more on contributing to genqlient. --> I have: - [x] Written a clear PR title and description (above) - [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla) - [X] Added tests covering my changes, if applicable - [x] Included a link to the issue fixed, if applicable - [x] Included documentation, for new features - [x] Added an entry to the changelog
1 parent e2e0ef0 commit ad1db8f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ When releasing a new version:
3131

3232
- fixed documentation link in `introduction.md`
3333
- upgraded version of alexflint/go-arg from 1.4.2 to 1.5.1
34+
- fixed a typo in the struct + fragment error message
3435

3536
## v0.8.0
3637

generate/genqlient_directive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (dir *genqlientDirective) validate(node interface{}, schema *ast.Schema) er
241241
}
242242

243243
if dir.Struct != nil {
244-
return errorf(dir.pos, "struct is only applicable to fields, not frragment-definitions")
244+
return errorf(dir.pos, "struct is only applicable to fields, not fragment-definitions")
245245
}
246246

247247
// Like operations, anything else will just apply to the entire

0 commit comments

Comments
 (0)