fixed typo
This commit is contained in:
2
main.go
2
main.go
@@ -74,7 +74,7 @@ func main() {
|
|||||||
// get first matchgroup, first match (aka first digit in forwardReplacedLine)
|
// get first matchgroup, first match (aka first digit in forwardReplacedLine)
|
||||||
first := firstMatch[0][0]
|
first := firstMatch[0][0]
|
||||||
|
|
||||||
// get last matchgroup, first match (aka last digit in forwardReplacedLine)
|
// get last matchgroup, first match (aka last digit in backwardReplacedLine)
|
||||||
last := lastMatch[len(lastMatch)-1:][0][0]
|
last := lastMatch[len(lastMatch)-1:][0][0]
|
||||||
|
|
||||||
fmt.Println(first + last)
|
fmt.Println(first + last)
|
||||||
|
Reference in New Issue
Block a user