# Repeated assignments in Flux documentation

**URL:** <https://discourse.julialang.org/t/repeated-assignments-in-flux-documentation/40824>\
**Category:** New to Julia\
**Tags:** documentation, flux\
**Created:** [June 5, 2020, 4:38pm UTC](https://discourse.julialang.org/t/repeated-assignments-in-flux-documentation/40824 "2020-06-05T16:38:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![natema](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@natema](https://discourse.julialang.org/u/natema)\
**Post date:** [June 5, 2020, 4:38pm UTC](https://discourse.julialang.org/t/repeated-assignments-in-flux-documentation/40824/1 "2020-06-05T16:38:40Z")

</div>

In several examples of the [Optimizer Reference section](https://fluxml.ai/Flux.jl/stable/training/optimisers/#Optimiser-Reference-1) of the Flux docs, there is an assignment without arguments followed by the same assignment with arguments. For example, for [`Flux.Optimise.Descent`](https://fluxml.ai/Flux.jl/stable/training/optimisers/#Flux.Optimise.Descent) we have

```julia
opt = Descent()

opt = Descent(0.3)

...

```

I don’t know the reason for that, and I can’t find the reason in the docs themselves.

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [June 5, 2020, 5:07pm UTC](https://discourse.julialang.org/t/repeated-assignments-in-flux-documentation/40824/2 "2020-06-05T17:07:39Z")

</div>

I’m guessing it’s just showing that you can use `Descent()` with a default learning rate (parameter η, which defaults to 0.1 in this case), or you can specify your own.
