chore: gofmt.

This commit is contained in:
John Beisley 2023-03-09 18:23:30 +00:00
parent e5bb4e5154
commit 15a204aa25
2 changed files with 11 additions and 11 deletions

View File

@ -321,9 +321,9 @@ var _ SOAPValue = &Fixed14_4{}
// Fixed14_4FromParts creates a Fixed14_4 from components. // Fixed14_4FromParts creates a Fixed14_4 from components.
// Bounds: // Bounds:
// * Both intPart and fracPart must have the same sign. // - Both intPart and fracPart must have the same sign.
// * -1e14 < intPart < 1e14 // - -1e14 < intPart < 1e14
// * -1e4 < fracPart < 1e4 // - -1e4 < fracPart < 1e4
func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) { func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
var v Fixed14_4 var v Fixed14_4
err := v.SetParts(intPart, fracPart) err := v.SetParts(intPart, fracPart)
@ -332,9 +332,9 @@ func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
// SetFromParts sets the value based on the integer component and the fractional component. // SetFromParts sets the value based on the integer component and the fractional component.
// Bounds: // Bounds:
// * Both intPart and fracPart must have the same sign. // - Both intPart and fracPart must have the same sign.
// * -1e14 < intPart < 1e14 // - -1e14 < intPart < 1e14
// * -1e4 < fracPart < 1e4 // - -1e4 < fracPart < 1e4
func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error { func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error {
if (intPart < 0) != (fracPart < 0) { if (intPart < 0) != (fracPart < 0) {
return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d", return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d",