From 49f7458a5a2277461f9f52ce117eae89b2c0d2e6 Mon Sep 17 00:00:00 2001 From: Allan Martinez <107075637+allmtz@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:26:17 -0800 Subject: [PATCH] fix typo in #11 I believe this is a typo, apologies if not --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index d3825c3..7baa609 100644 --- a/docs/index.md +++ b/docs/index.md @@ -215,7 +215,7 @@ Using type embedding consciously by keeping these constraints in mind can help a Although there are different implementations with minor variations, the main idea is as follows: * An unexported struct holds the configuration: options. -* Each option is a function that returns the same type: `type Option func(options *options)` error. For example, `WithPort` accepts an `int` argument that represents the port and returns an `Option` type that represents how to update the `options` struct. +* Each option is a function that returns the same type: `type Option func(options *options) error`. For example, `WithPort` accepts an `int` argument that represents the port and returns an `Option` type that represents how to update the `options` struct. ![](img/options.png)