Browse Source

Less ugly

Piotr Czajkowski 2 weeks ago
parent
commit
2280dbe24b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      07/code.go

+ 1 - 1
07/code.go

@@ -57,7 +57,7 @@ func concatenate(a, b int) int {
 		return b
 		return b
 	}
 	}
 
 
-	result, _ := strconv.Atoi(strconv.Itoa(a) + strconv.Itoa(b))
+	result, _ := strconv.Atoi(fmt.Sprintf("%d%d", a, b))
 	return result
 	return result
 }
 }