From b0c236be76dacb2c3956c58795f518d5ab0daa6f Mon Sep 17 00:00:00 2001 From: John Stewart Date: Sun, 11 May 2025 11:17:01 -0700 Subject: [PATCH] Fix documentation example for Nx.backend_copy The example was missing an extra tab causing the first line to be rendered as text instead of code. See https://hexdocs.pm/nx/Nx.html#functions-backend --- nx/lib/nx.ex | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/nx/lib/nx.ex b/nx/lib/nx.ex index 364ee522f6..b6048e0130 100644 --- a/nx/lib/nx.ex +++ b/nx/lib/nx.ex @@ -4515,14 +4515,15 @@ defmodule Nx do ## Examples - iex> Nx.backend_copy(Nx.tensor([[1, 2, 3], [4, 5, 6]])) - #Nx.Tensor< - s32[2][3] - [ - [1, 2, 3], - [4, 5, 6] - ] - > + iex> Nx.backend_copy(Nx.tensor([[1, 2, 3], [4, 5, 6]])) + #Nx.Tensor< + s32[2][3] + [ + [1, 2, 3], + [4, 5, 6] + ] + > + """ @doc type: :backend def backend_copy(tensor_or_container, backend \\ Nx.BinaryBackend) do