diff --git a/client.go b/client.go index 9eee501..72e2cac 100644 --- a/client.go +++ b/client.go @@ -188,7 +188,7 @@ func (cli *Client) StopSync() { // body is nil. // // Returns an error if the response is not 2xx along with the HTTP body bytes if it got that far. This error is -// an HTTPError which includes the returned HTTP status code, byte contents of the response body and possibly a +// an HTTPError which includes the returned HTTP status code, byte contents of the response body and possibly a // RespError as the WrappedError, if the HTTP body could be decoded as a RespError. func (cli *Client) MakeRequest(method string, httpURL string, reqBody interface{}, resBody interface{}) error { var req *http.Request diff --git a/userids.go b/userids.go index 23e7807..70002c5 100644 --- a/userids.go +++ b/userids.go @@ -125,6 +125,6 @@ func ExtractUserLocalpart(userID string) (string, error) { } return strings.TrimPrefix( strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ] - "@", // remove "@" prefix + "@", // remove "@" prefix ), nil }