From 91d463b872a25e88b49fb8473b253eba0dc2c56b Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Sun, 15 Dec 2024 09:46:41 +0700 Subject: [PATCH] :recycle: refactor: refactor codebase #2 --- wrap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrap.go b/wrap.go index f5cb16f..5091fa7 100644 --- a/wrap.go +++ b/wrap.go @@ -776,7 +776,7 @@ func (h *header) Text() string { return h.text } -// TypeN retrieves the type value from the `header` instance. +// Type retrieves the type value from the `header` instance. // // This function checks if the `header` instance is available (non-nil) before retrieving // the `Type` field. If the `header` instance is unavailable, it returns an empty string. @@ -784,7 +784,7 @@ func (h *header) Text() string { // Returns: // - The `Type` as a string if available. // - An empty string if the `header` instance is unavailable. -func (h *header) TypeN() string { +func (h *header) Type() string { if !h.Available() { return "" }