Skip to content

Commit

Permalink
Fix typo in xml.Unmarshal (quii#563)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris James <quii@hey.com>
  • Loading branch information
alexandear and quii authored Apr 26, 2022
1 parent 0df9132 commit 701dda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions math.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ to parse it.
[`encoding/xml`][xml] is the Go package that can handle all things to do with
simple XML parsing.

The function [`xml.Unmarshall`](https://pkg.go.dev/encoding/xml#Unmarshal) takes

The function [`xml.Unmarshal`](https://pkg.go.dev/encoding/xml#Unmarshal) takes
a `[]byte` of XML data, and a pointer to a struct for it to get unmarshalled in
to.

Expand Down Expand Up @@ -1034,7 +1035,7 @@ func TestSVGWriterAtMidnight(t *testing.T) {
```

We write the output of `clockface.SVGWriter` to a `bytes.Buffer`
and then `Unmarshall` it into an `Svg`. We then look at each `Line` in the `Svg`
and then `Unmarshal` it into an `Svg`. We then look at each `Line` in the `Svg`
to see if any of them have the expected `X2` and `Y2` values. If we get a match
we return early (passing the test); if not we fail with a (hopefully)
informative message.
Expand Down

0 comments on commit 701dda5

Please sign in to comment.