# Join two variables together

**URL:** <https://discourse.gohugo.io/t/join-two-variables-together/39402>\
**Category:** support\
**Created:** [July 7, 2022, 10:23pm UTC](https://discourse.gohugo.io/t/join-two-variables-together/39402 "2022-07-07T22:23:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [July 7, 2022, 11:31pm UTC](https://discourse.gohugo.io/t/join-two-variables-together/39402/6 "2022-07-07T23:31:09Z")

</div>

That’s a typo in the doc. ~~It should be fixed.~~ [fix: Use `=` instead of `:=` for variable reassignments by kaushalmodi · Pull Request #1771 · gohugoio/hugoDocs · GitHub](https://github.com/gohugoio/hugoDocs/pull/1771)

Only the first assignment uses `:=`. Think of it as a variable declaration. Re-assignments use `=`.

---

_[View the full topic](https://discourse.gohugo.io/t/join-two-variables-together/39402)._
