Skip to content

Commit

Permalink
docs: correct doc comment for PositionCodec.client_num_units
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBencina authored and tombh committed Oct 10, 2023
1 parent ca23f34 commit 838a32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygls/workspace/position_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def utf16_unit_offset(self, chars: str):

def client_num_units(self, chars: str):
"""
Calculate the length of `str` in utf-16 code units.
Calculate the length of `str` in client-supported UTF-[32|16|8] code units.
Arguments:
chars (str): The string to return the length in utf-16 code units for.
chars (str): The string to return the length in UTF-[32|16|8] code units for.
"""
utf32_units = len(chars)
if self.encoding == types.PositionEncodingKind.Utf32:
Expand Down

0 comments on commit 838a32f

Please sign in to comment.