فهرست منبع

Merge pull request #2375 from wjlroe/patch-1

Fix documentation example of strings.to_upper
Jeroen van Rijn 2 سال پیش
والد
کامیت
56bfbbf501
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      core/strings/conversion.odin

+ 2 - 2
core/strings/conversion.odin

@@ -78,8 +78,8 @@ to_lower :: proc(s: string, allocator := context.allocator) -> string {
 	returns the input string `s` with all runes set to upper case
 	always allocates using the `allocator`
 
-	strings.to_lower("test") -> TEST
-	strings.to_lower("Test") -> TEST
+	strings.to_upper("test") -> TEST
+	strings.to_upper("Test") -> TEST
 */
 to_upper :: proc(s: string, allocator := context.allocator) -> string {
 	b: Builder