txt: ## trim-trailing.md
  trim-trailing
  
  Combined from primary sources listed below.
  
  # [In Allomorph](#___top "go to top of document")[§](#(Allomorph)_method_trim-trailing "direct link")
  
  See primary documentation
  [in context](/type/Allomorph#method_trim-trailing)
  for **method trim-trailing**.
  
  ```raku
  method trim-trailing(Allomorph:D:)
  ```
  
  Calls [`Str.trim-trailing`](/type/Str#method_trim-trailing) on the invocant's [`Str`](/type/Str) value.
  
  # [In Str](#___top "go to top of document")[§](#(Str)_method_trim-trailing "direct link")
  
  See primary documentation
  [in context](/type/Str#method_trim-trailing)
  for **method trim-trailing**.
  
  ```raku
  method trim-trailing(Str:D: --> Str)
  ```
  
  Removes the whitespace characters from the end of a string. See also [trim](/routine/trim).
  
  # [In Cool](#___top "go to top of document")[§](#(Cool)_routine_trim-trailing "direct link")
  
  See primary documentation
  [in context](/type/Cool#routine_trim-trailing)
  for **routine trim-trailing**.
  
  ```raku
  sub trim-trailing(Str(Cool))
  method trim-trailing()
  ```
  
  Coerces the invocant (or in sub form, its argument) to [`Str`](/type/Str), and returns the string with trailing whitespace stripped.
  
  ```raku
  my $stripped = '  abc '.trim-trailing;
  say "<$stripped>";          # OUTPUT: «<  abc>␤»
  ```
  